Skip to content
Snippets Groups Projects
Commit d8c5492f authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Fix initial AoA value in MPhys API

parent 5ba134b1
No related branches found
Tags v1.2.0
No related merge requests found
Pipeline #54659 passed
......@@ -224,7 +224,7 @@ class DartSolver(om.ImplicitComponent):
self.sol = self.options['sol']
self.adj = self.options['adj']
# I/O
self.add_input('aoa', val=0., units='rad', desc='angle of attack', tags=['mphys_input'])
self.add_input('aoa', val=self.sol.pbl.alpha, units='rad', desc='angle of attack', tags=['mphys_input'])
self.add_input('xv', shape_by_conn=True, desc='aerodynamic volume node coordinates', tags=['mphys_coupling'])
self.add_output('phi', val=np.zeros(len(self.sol.pbl.msh.nodes)), desc='dart variables (potential)', tags=['mphys_coupling'])
# Partials
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment