Go to the documentation of this file.
18 #include "fvOptions.H"
19 #include "globalIndex.H"
57 template<
class classType>
59 List<classType>& listIn,
60 const classType valDel);
96 const label printToScreen);
102 const label printToScreen);
108 const scalar tol = 1.0e-6);
128 const SolverPerformance<scalar>& solverP,
129 const label printToScreen,
131 scalar& primalMaxRes);
135 const SolverPerformance<vector>& solverP,
136 const label printToScreen,
138 scalar& primalMaxRes);
141 const primitiveMesh&
mesh,
146 const word fieldName,
147 const word fieldType);
150 template<
class classType>
151 static void swapLists(List<classType>& a, List<classType>& b);
154 template<
class classType>
156 List<classType>& listIn,
157 const classType valDel)
179 List<classType> listNew;
184 const classType& val = listIn[idxI];
203 template<
class classType>
206 List<classType> temp = a;
static void readMatrixBinary(Mat matIn, const word prefix)
read petsc matrix in binary format
static pyJacVecProdInterface pyCalcBetaJacVecProdInterface
static void readVectorBinary(Vec vecIn, const word prefix)
read petsc vector in binary format
static void * pyCalcBeta
define a function pointer template for Python call back
static pyComputeInterface pyCalcBetaInterface
virtual ~DAUtility()
Destructor.
void(* pySetCharInterface)(const char *, void *)
static void * pyCalcBetaJacVecProd
static pySetCharInterface pySetModelNameInterface
static scalar angleOfAttackRadForwardAD
angle of attack in radian used in forward mode AD
static label isValueCloseToRef(const scalar val, const scalar refVal, const scalar tol=1.0e-6)
check whether a value is close to a reference value by a tolerance
static void pyDict2OFDict(PyObject *pyDict, dictionary &ofDict)
convert a python dictionary object to OpenFoam dictionary
static void * pySetModelName
static void boundVar(const dictionary &allOptions, volScalarField &var, const label printToScreen)
bound a volScalar variable based on parametes defined in DAOption::allOptions_
static void writeVectorBinary(const Vec vecIn, const word prefix)
write petsc vector in binary format
static void swapLists(List< classType > &a, List< classType > &b)
swap two lists
static void primalResidualControl(const SolverPerformance< scalar > &solverP, const label printToScreen, const word varName, scalar &primalMaxRes)
control when to print the residual and also compute the maxInitRes
void(* pyJacVecProdInterface)(const double *, double *, int, const double *, const double *, int, void *)
const dictionary & allOptions
static label listDeleteVal(List< classType > &listIn, const classType valDel)
delete a value in the list
static void writeMatrixBinary(const Mat matIn, const word prefix)
write petsc matrix in binary format
static label myFindCell(const primitiveMesh &mesh, const point &point)
static void writeVectorASCII(const Vec vecIn, const word prefix)
write petsc vector in ascii format
static void writeMatrixASCII(const Mat matIn, const word prefix)
write petsc matrix in ascii format
void(* pyComputeInterface)(const double *, int, double *, int, void *)
static label isFieldReadable(const fvMesh &mesh, const word fieldName, const word fieldType)
static globalIndex genGlobalIndex(const label localIndexSize)
generate global index numbering for local-global index transferring