Public Member Functions | Public Attributes | List of all members
OptFuncs Class Reference
Inheritance diagram for OptFuncs:
Inheritance graph
[legend]
Collaboration diagram for OptFuncs:
Collaboration graph
[legend]

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
 

Detailed Description

Some utility functions

Definition at line 2121 of file mphys_dafoam.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ findFeasibleDesign()

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.

Member Data Documentation

◆ daOptions

daOptions

Definition at line 2135 of file mphys_dafoam.py.

◆ om_prob

om_prob

Definition at line 2136 of file mphys_dafoam.py.

Referenced by OptFuncs.findFeasibleDesign().

◆ comm

comm

The documentation for this class was generated from the following file: