Public Member Functions | |
def | __init__ (self, daOptions, om_prob) |
def | findFeasibleDesign (self, constraints, designVars, targets, constraintsComp=None, designVarsComp=None, epsFD=None, maxIter=10, tol=1e-4, maxNewtonStep=None) |
Public Attributes | |
daOptions | |
om_prob | |
comm | |
Some utility functions
Definition at line 1092 of file mphys_dafoam.py.
def __init__ | ( | self, | |
daOptions, | |||
om_prob | |||
) |
daOptions: dict or list The daOptions dict from runScript.py. Support more than two dicts om_prob: The om.Problem() object
Definition at line 1097 of file mphys_dafoam.py.
def findFeasibleDesign | ( | self, | |
constraints, | |||
designVars, | |||
targets, | |||
constraintsComp = None , |
|||
designVarsComp = None , |
|||
epsFD = None , |
|||
maxIter = 10 , |
|||
tol = 1e-4 , |
|||
maxNewtonStep = None |
|||
) |
Find the design variables that meet the prescribed constraints. This can be used to get a feasible design to start the optimization. For example, finding the angle of attack and tail rotation angle that give the target lift and pitching moment. The sizes of cons and designvars have to be the same. NOTE: we use the Newton method to find the feasible design.
Definition at line 1110 of file mphys_dafoam.py.
References DAFoamBuilder.comm, OptFuncs.comm, and OptFuncs.om_prob.
daOptions |
Definition at line 1106 of file mphys_dafoam.py.
om_prob |
Definition at line 1107 of file mphys_dafoam.py.
Referenced by OptFuncs.findFeasibleDesign().
comm |
Definition at line 1108 of file mphys_dafoam.py.
Referenced by PYDAFOAM.__call__(), PYDAFOAM.array2Vec(), DAFoamForces.compute(), DAFoamSolverUnsteady.compute_jacvec_product(), PYDAFOAM.deletePrevPrimalSolTime(), OptFuncs.findFeasibleDesign(), PYDAFOAM.getSolverMeshIndices(), PYDAFOAM.getTriangulatedMeshSurface(), PYDAFOAM.mapVector(), PYDAFOAM.renameSolution(), PYDAFOAM.runDecomposePar(), and DAFoamSolver.solve_linear().