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 2121 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 2126 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 2164 of file mphys_dafoam.py.
References DAFoamBuilder.comm, OptFuncs.comm, and OptFuncs.om_prob.
daOptions |
Definition at line 2135 of file mphys_dafoam.py.
om_prob |
Definition at line 2136 of file mphys_dafoam.py.
Referenced by OptFuncs.findFeasibleDesign().
comm |
Definition at line 2137 of file mphys_dafoam.py.
Referenced by DAFoamSolver.apply_linear(), DAFoamFvSource.compute(), DAFoamPropNodes.compute(), DAFoamActuator.compute(), DAFoamFunctions.compute_jacvec_product(), DAFoamFvSource.compute_jacvec_product(), DAFoamPropNodes.compute_jacvec_product(), DAFoamActuator.compute_jacvec_product(), PYDAFOAM.deletePrevPrimalSolTime(), OptFuncs.findFeasibleDesign(), PYDAFOAM.getForces(), PYDAFOAM.getSolverMeshIndices(), PYDAFOAM.getTriangulatedMeshSurface(), PYDAFOAM.mapdXvTodFFD(), DAFoamGroup.mphys_compute_nodes(), DAFoamGroup.mphys_set_masking(), DAFoamGroup.mphys_set_unmasking(), PYDAFOAM.renameSolution(), PYDAFOAM.runDecomposePar(), DAFoamSolver.solve_linear(), PYDAFOAM.vec2ArraySeq(), PYDAFOAM.writeDeformedFFDs(), PYDAFOAM.writeDesignVariable(), PYDAFOAM.writeTotalDeriv(), PYDAFOAM.xvFlatten2XvVec(), and PYDAFOAM.zeroTimeAccurateAdjointVectors().