|
| DASolvers (char *argsAll, PyObject *pyOptions) |
| Construct from components. More...
|
|
virtual | ~DASolvers () |
| Destructor. More...
|
|
void | initSolver () |
| initialize fields and variables More...
|
|
label | solvePrimal (const Vec xvVec, Vec wVec) |
| solve the primal equations More...
|
|
void | calcdRdWT (const Vec xvVec, const Vec wVec, const label isPC, Mat dRdWT) |
| compute dRdWT More...
|
|
void | calcdFdW (const Vec xvVec, const Vec wVec, const word objFuncName, Vec dFdW) |
| compute dFdW More...
|
|
void | calcdFdWAD (const Vec xvVec, const Vec wVec, const word objFuncName, Vec dFdW) |
| compute dFdW using reverse-mode AD More...
|
|
void | calcdFdXvAD (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdXv) |
| compute dFdXv using reverse-mode AD More...
|
|
void | calcdRdXvTPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, Vec dRdXvTPsi) |
| compute dRdXv^T*Psi More...
|
|
void | calcdForcedXvAD (const Vec xvVec, const Vec wVec, const Vec fBarVec, Vec dForcedW) |
| compute dForcedXv More...
|
|
void | calcdAcousticsdXvAD (const Vec xvVec, const Vec wVec, const Vec fBarVec, Vec dAcoudW, word varName, word groupName) |
| compute dAcoudXv More...
|
|
void | calcdRdActTPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, const word designVarName, Vec dRdActTPsi) |
| compute dRdAct^T*Psi More...
|
|
void | calcdForcedWAD (const Vec xvVec, const Vec wVec, const Vec fBarVec, Vec dForcedW) |
| compute dForcedW More...
|
|
void | calcdAcousticsdWAD (const Vec xvVec, const Vec wVec, const Vec fBarVec, Vec dAcoudW, word varName, word groupName) |
| compute dAcoudW More...
|
|
void | calcdRdAOATPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, const word designVarName, Vec dRdAOATPsi) |
| compute dRdAOA^T*Psi More...
|
|
void | createMLRKSP (const Mat jacMat, const Mat jacPCMat, KSP ksp) |
| create the multi-level Richardson KSP for solving linear equation More...
|
|
void | createMLRKSPMatrixFree (const Mat jacPCMat, KSP ksp) |
| create a multi-level, Richardson KSP object with matrix-free Jacobians More...
|
|
void | initializedRdWTMatrixFree (const Vec xvVec, const Vec wVec) |
| initialize matrix free dRdWT More...
|
|
void | destroydRdWTMatrixFree () |
| destroy matrix free dRdWT More...
|
|
void | solveLinearEqn (const KSP ksp, const Vec rhsVec, Vec solVec) |
| solve the linear equation More...
|
|
void | convertMPIVec2SeqVec (const Vec mpiVec, Vec seqVec) |
| convert the mpi vec to a seq vec More...
|
|
void | calcdRdBC (const Vec xvVec, const Vec wVec, const word designVarName, Mat dRdBC) |
| compute dRdBC More...
|
|
void | calcdFdBC (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdBC) |
| compute dFdBC More...
|
|
void | calcdFdBCAD (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdBC) |
| compute dFdBCAD More...
|
|
void | calcdRdBCTPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, const word designVarName, Vec dRdBCTPsi) |
| compute dRdBC^T*Psi More...
|
|
void | calcdRdAOA (const Vec xvVec, const Vec wVec, const word designVarName, Mat dRdAOA) |
| compute dRdAOA More...
|
|
void | calcdFdAOA (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdAOA) |
| compute dFdAOA More...
|
|
void | calcdRdFFD (const Vec xvVec, const Vec wVec, const word designVarName, Mat dRdFFD) |
| compute dRdFFD More...
|
|
void | calcdFdFFD (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdFFD) |
| compute dFdFFD More...
|
|
void | calcdRdACT (const Vec xvVec, const Vec wVec, const word designVarName, const word designVarType, Mat dRdACT) |
| compute dRdACT More...
|
|
void | calcdFdACTAD (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdACT) |
| compute dFdACT More...
|
|
void | calcdFdACT (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, const word designVarType, Vec dFdACT) |
| compute dFdACT More...
|
|
void | calcdRdFieldTPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, const word designVarName, Vec dRdFieldTPsi) |
| compute dRdField More...
|
|
void | calcdFdFieldAD (const Vec xvVec, const Vec wVec, const word objFuncName, const word designVarName, Vec dFdField) |
| compute dFdField More...
|
|
void | calcdRdWOldTPsiAD (const label oldTimeLevel, const Vec psi, Vec dRdWOldTPsi) |
| compute dRdWOld^T*Psi More...
|
|
void | calcdRdWTPsiAD (const Vec xvVec, const Vec wVec, const Vec psi, Vec dRdWTPsi) |
| compute [dRdW]^T*Psi More...
|
|
void | updateOFField (const Vec wVec) |
| Update the OpenFOAM field values (including both internal and boundary fields) based on the state vector wVec. More...
|
|
void | updateOFMesh (const Vec xvVec) |
| Update the OpenFoam mesh point coordinates based on the point vector xvVec. More...
|
|
label | getGlobalXvIndex (const label idxPoint, const label idxCoord) const |
| basically, we call DAIndex::getGlobalXvIndex More...
|
|
void | ofField2StateVec (Vec stateVec) const |
| basically, we call DASolver::ofField2StateVec More...
|
|
void | stateVec2OFField (const Vec stateVec) const |
| basically, we call DASolver::stateVec2OFField More...
|
|
label | checkMesh () const |
| basically, we call DASolver::checkMesh More...
|
|
label | getNCouplingFaces () |
| Get the number of faces for the MDO coupling patches. More...
|
|
label | getNCouplingPoints () |
| Get the number of points for the MDO coupling patches. More...
|
|
label | getNLocalPoints () const |
|
label | getNLocalAdjointStates () const |
| return the number of local adjoint states More...
|
|
label | getNLocalAdjointBoundaryStates () const |
| return the number of local adjoint boundary states More...
|
|
label | getNLocalCells () const |
| return the number of local cells More...
|
|
void | syncDAOptionToActuatorDVs () |
| synchronize the values in DAOption and actuatorDiskDVs_ More...
|
|
double | getObjFuncValue (const word objFuncName) |
| return the value of objective More...
|
|
void | calcCouplingFaceCoords (const double *volCoords, double *surfCoords) |
|
void | calcCouplingFaceCoordsAD (const double *volCoords, const double *seeds, double *product) |
| calc matrix-vector products for calcCouplingFaceCoords More...
|
|
void | getForces (Vec fX, Vec fY, Vec fZ) |
| return the force on the FSI patches More...
|
|
void | getThermal (const double *volCoords, const double *states, double *thermal) |
| return the thermal (temperature or heat flux) on the conjugate heat transfer patches More...
|
|
void | getThermalAD (const word inputName, const double *volCoords, const double *states, const double *seeds, double *product) |
| compute the temperature on the conjugate heat transfer patches AD More...
|
|
void | setThermal (double *thermal) |
| set the thermal (temperature or heat flux) BC to the conjugate heat transfer patches More...
|
|
void | calcdRdThermalTPsiAD (const double *volCoords, const double *states, const double *thermal, const double *seeds, double *product) |
|
void | getAcousticData (Vec x, Vec y, Vec z, Vec nX, Vec nY, Vec nZ, Vec a, Vec fX, Vec fY, Vec fZ, word groupName) |
| return the acoustic data values More...
|
|
void | printAllOptions () |
| call DASolver::printAllOptions More...
|
|
void | setdXvdFFDMat (const Mat dXvdFFDMat) |
| set values for dXvdFFDMat More...
|
|
void | setFFD2XvSeedVec (Vec vecIn) |
| set the value for DASolver::FFD2XvSeedVec_ More...
|
|
void | updateDAOption (PyObject *pyOptions) |
| update the allOptions_ dict in DAOption based on the pyOptions from pyDAFoam More...
|
|
double | getPrevPrimalSolTime () |
| get the solution time folder for previous primal solution More...
|
|
void | pointVec2OFMesh (const Vec xvVec) const |
| assign the points in fvMesh of OpenFOAM based on the point vector More...
|
|
void | ofMesh2PointVec (Vec xvVec) const |
| assign the point vector based on the points in fvMesh of OpenFOAM More...
|
|
void | resVec2OFResField (const Vec resVec) const |
| assign the OpenFOAM residual fields based on the resVec More...
|
|
void | ofResField2ResVec (Vec resVec) const |
| assign the resVec based on OpenFOAM residual fields More...
|
|
void | writeMatrixBinary (const Mat matIn, const word prefix) |
| write the matrix in binary format More...
|
|
void | writeMatrixASCII (const Mat matIn, const word prefix) |
| write the matrix in ASCII format More...
|
|
void | readMatrixBinary (Mat matIn, const word prefix) |
| read petsc matrix in binary format More...
|
|
void | writeVectorASCII (const Vec vecIn, const word prefix) |
| write petsc vector in ascii format More...
|
|
void | readVectorBinary (Vec vecIn, const word prefix) |
| read petsc vector in binary format More...
|
|
void | writeVectorBinary (const Vec vecIn, const word prefix) |
| write petsc vector in binary format More...
|
|
void | setTimeInstanceField (const label instanceI) |
| assign primal variables based on the current time instance More...
|
|
void | setTimeInstanceVar (const word mode, Mat stateMat, Mat stateBCMat, Vec timeVec, Vec timeIdxVec) |
| assign the time instance mats to/from the lists in the OpenFOAM layer depending on the mode More...
|
|
double | getTimeInstanceObjFunc (const label instanceI, const word objFuncName) |
| return the value of objective function at the given time instance and name More...
|
|
void | setFieldValue4GlobalCellI (const word fieldName, const scalar val, const label globalCellI, const label compI=0) |
| set the field value More...
|
|
void | setFieldValue4LocalCellI (const word fieldName, const scalar val, const label localCellI, const label compI=0) |
| set the field value More...
|
|
void | updateBoundaryConditions (const word fieldName, const word fieldType) |
| update the boundary condition for a field More...
|
|
void | calcPrimalResidualStatistics (const word mode) |
| Calculate the mean, max, and norm2 for all residuals and print it to screen. More...
|
|
PetscScalar | getForwardADDerivVal (const word objFuncName) |
| get forwardADDerivVal_ More...
|
|
void | calcResidualVec (Vec resVec) |
| calculate the residual and assign it to the resVec vector More...
|
|
void | setPrimalBoundaryConditions (const label printInfo=1) |
|
void | calcFvSource (const word propName, Vec aForce, Vec tForce, Vec rDist, Vec targetForce, Vec center, Vec fvSource) |
| calculate the fvSource based on the force profile More...
|
|
void | calcdFvSourcedInputsTPsiAD (const word propName, const word mode, Vec aForce, Vec tForce, Vec rDist, Vec targetForce, Vec center, Vec psi, Vec dFvSource) |
|
void | calcForceProfile (Vec center, Vec aForceL, Vec tForceL, Vec rDistL) |
|
void | calcdForcedStateTPsiAD (const word mode, Vec xvVec, Vec stateVec, Vec psiVec, Vec prodVec) |
|
label | runFPAdj (const Vec xvVec, const Vec wVec, Vec dFdW, Vec psi) |
|
void | initTensorFlowFuncs (pyComputeInterface computeInterface, void *compute, pyJacVecProdInterface jacVecProdInterface, void *jacVecProd) |
| initialize the call back function pointer More...
|
|