Public Member Functions | |
def | initialize (self) |
def | setup (self) |
def | add_dv_func (self, dvName, dv_func) |
def | set_options (self, optionDict) |
def | apply_options (self, optionDict) |
def | apply_nonlinear (self, inputs, outputs, residuals) |
def | solve_nonlinear (self, inputs, outputs) |
def | linearize (self, inputs, outputs, residuals) |
def | apply_linear (self, inputs, outputs, d_inputs, d_outputs, d_residuals, mode) |
def | solve_linear (self, d_outputs, d_residuals, mode) |
Public Attributes | |
prop_coupling | |
DASolver | |
run_directory | |
discipline | |
solution_counter | |
optionDict | |
dv_funcs | |
psi | |
runColoring | |
evalFuncs | |
dvType | |
OpenMDAO component that wraps the DAFoam flow and adjoint solvers
Definition at line 538 of file mphys_dafoam.py.
def initialize | ( | self | ) |
Definition at line 543 of file mphys_dafoam.py.
References DAFoamBuilder.options, PYDAFOAM.options, and TensorFlowHelper.options.
def setup | ( | self | ) |
Definition at line 548 of file mphys_dafoam.py.
def add_dv_func | ( | self, | |
dvName, | |||
dv_func | |||
) |
Definition at line 639 of file mphys_dafoam.py.
References DAFoamSolver.dv_funcs.
def set_options | ( | self, | |
optionDict | |||
) |
Definition at line 649 of file mphys_dafoam.py.
References DAFoamSolver.optionDict.
def apply_options | ( | self, | |
optionDict | |||
) |
Definition at line 654 of file mphys_dafoam.py.
References DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, and DAFoamSolver.DASolver.
Referenced by DAFoamSolver.apply_linear(), DAFoamFunctions.compute_jacvec_product(), and DAFoamSolver.solve_nonlinear().
def apply_nonlinear | ( | self, | |
inputs, | |||
outputs, | |||
residuals | |||
) |
Definition at line 663 of file mphys_dafoam.py.
References DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, DAFoamSolver.DASolver, DAFoamGroup.discipline, DAFoamPrecouplingGroup.discipline, and DAFoamSolver.discipline.
def solve_nonlinear | ( | self, | |
inputs, | |||
outputs | |||
) |
Definition at line 671 of file mphys_dafoam.py.
References DAFoamSolver.apply_options(), DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, DAFoamSolver.DASolver, DAFoamGroup.discipline, DAFoamPrecouplingGroup.discipline, DAFoamSolver.discipline, DAFoamSolver.dv_funcs, DAFoamSolver.evalFuncs, DAFoamSolver.optionDict, DAFoamBuilder.run_directory, DAFoamGroup.run_directory, and DAFoamSolver.run_directory.
def linearize | ( | self, | |
inputs, | |||
outputs, | |||
residuals | |||
) |
Definition at line 717 of file mphys_dafoam.py.
References DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, DAFoamSolver.DASolver, DAFoamGroup.discipline, DAFoamPrecouplingGroup.discipline, and DAFoamSolver.discipline.
def apply_linear | ( | self, | |
inputs, | |||
outputs, | |||
d_inputs, | |||
d_outputs, | |||
d_residuals, | |||
mode | |||
) |
Definition at line 722 of file mphys_dafoam.py.
References DAFoamSolver.apply_options(), DAFoamBuilder.comm, PYDAFOAM.comm, OptFuncs.comm, DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, DAFoamSolver.DASolver, DAFoamGroup.discipline, DAFoamPrecouplingGroup.discipline, DAFoamSolver.discipline, DAFoamSolver.dv_funcs, DAFoamSolver.dvType, and DAFoamSolver.optionDict.
def solve_linear | ( | self, | |
d_outputs, | |||
d_residuals, | |||
mode | |||
) |
Definition at line 867 of file mphys_dafoam.py.
References DAFoamSolver._updateKSPTolerances(), DAFoamBuilder.comm, PYDAFOAM.comm, OptFuncs.comm, DAFoamBuilder.DASolver, DAFoamGroup.DASolver, DAFoamPrecouplingGroup.DASolver, DAFoamPostcouplingGroup.DASolver, DAFoamSolver.DASolver, DAFoamGroup.discipline, DAFoamPrecouplingGroup.discipline, DAFoamSolver.discipline, DAFoamSolver.psi, DAFoamBuilder.run_directory, DAFoamGroup.run_directory, DAFoamSolver.run_directory, DAFoamSolver.runColoring, and DAFoamSolver.solution_counter.
prop_coupling |
Definition at line 551 of file mphys_dafoam.py.
DASolver |
Definition at line 553 of file mphys_dafoam.py.
Referenced by DAFoamSolver.apply_linear(), DAFoamSolver.apply_nonlinear(), DAFoamSolver.apply_options(), DAFoamFunctions.apply_options(), DAFoamFunctions.compute(), DAFoamWarper.compute(), DAFoamThermal.compute(), DAFoamFaceCoords.compute(), DAFoamForces.compute(), DAFoamAcoustics.compute(), DAFoamFvSource.compute(), DAFoamFunctions.compute_jacvec_product(), DAFoamWarper.compute_jacvec_product(), DAFoamThermal.compute_jacvec_product(), DAFoamFaceCoords.compute_jacvec_product(), DAFoamForces.compute_jacvec_product(), DAFoamAcoustics.compute_jacvec_product(), DAFoamFvSource.compute_jacvec_product(), DAFoamSolver.linearize(), DAFoamFunctions.mphys_add_funcs(), DAFoamMesh.mphys_get_surface_size(), DAFoamMesh.mphys_get_triangulated_surface(), DAFoamSolver.solve_linear(), and DAFoamSolver.solve_nonlinear().
run_directory |
Definition at line 556 of file mphys_dafoam.py.
Referenced by DAFoamSolver.solve_linear(), and DAFoamSolver.solve_nonlinear().
discipline |
Definition at line 558 of file mphys_dafoam.py.
Referenced by DAFoamSolver.apply_linear(), DAFoamSolver.apply_nonlinear(), DAFoamMesh.compute(), DAFoamFunctions.compute(), DAFoamWarper.compute(), DAFoamThermal.compute(), DAFoamFaceCoords.compute(), DAFoamForces.compute(), DAFoamAcoustics.compute(), DAFoamMesh.compute_jacvec_product(), DAFoamFunctions.compute_jacvec_product(), DAFoamWarper.compute_jacvec_product(), DAFoamThermal.compute_jacvec_product(), DAFoamFaceCoords.compute_jacvec_product(), DAFoamForces.compute_jacvec_product(), DAFoamAcoustics.compute_jacvec_product(), DAFoamSolver.linearize(), DAFoamMesh.mphys_add_coordinate_input(), DAFoamSolver.solve_linear(), and DAFoamSolver.solve_nonlinear().
solution_counter |
Definition at line 560 of file mphys_dafoam.py.
Referenced by DAFoamSolver.solve_linear().
optionDict |
Definition at line 566 of file mphys_dafoam.py.
Referenced by DAFoamSolver.apply_linear(), DAFoamFunctions.compute_jacvec_product(), DAFoamFunctions.mphys_set_options(), DAFoamSolver.set_options(), and DAFoamSolver.solve_nonlinear().
dv_funcs |
Definition at line 569 of file mphys_dafoam.py.
Referenced by DAFoamSolver.add_dv_func(), DAFoamFunctions.add_dv_func(), DAFoamSolver.apply_linear(), DAFoamFunctions.compute_jacvec_product(), and DAFoamSolver.solve_nonlinear().
psi |
Definition at line 575 of file mphys_dafoam.py.
Referenced by DAFoamSolver.solve_linear().
runColoring |
Definition at line 580 of file mphys_dafoam.py.
Referenced by DAFoamSolver.solve_linear().
evalFuncs |
Definition at line 585 of file mphys_dafoam.py.
Referenced by DAFoamSolver.solve_nonlinear().
dvType |
Definition at line 593 of file mphys_dafoam.py.
Referenced by DAFoamSolver.apply_linear(), and DAFoamFunctions.compute_jacvec_product().