Go to the documentation of this file.
18 #include "fvOptions.H"
19 #include "globalIndex.H"
56 template<
class classType>
58 const classType value,
59 const List<classType>& list);
62 template<
class classType>
64 List<classType>& listIn,
65 const classType valOrig,
66 const classType valNew);
69 template<
class classType>
71 List<classType>& listIn,
72 const classType valDel);
108 const label printToScreen);
114 const label printToScreen);
120 const scalar tol = 1.0e-6);
136 template<
class classType>
138 const classType value,
139 const List<classType>& list)
158 if (list[idxI] == value)
166 template<
class classType>
168 List<classType>& listIn,
169 const classType valOrig,
170 const classType valNew)
191 const classType& val = listIn[idxI];
194 listIn[idxI] = valNew;
202 template<
class classType>
204 List<classType>& listIn,
205 const classType valDel)
227 List<classType> listNew;
232 const classType& val = listIn[idxI];
static void readMatrixBinary(Mat matIn, const word prefix)
read petsc matrix in binary format
static label listReplaceVal(List< classType > &listIn, const classType valOrig, const classType valNew)
replace a value in the list
const dictionary & allOptions
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
forAll(pseudoP.boundaryField(), patchI)
static pyComputeInterface pyCalcBetaInterface
virtual ~DAUtility()
Destructor.
static void * pyCalcBetaJacVecProd
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 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
void(* pyJacVecProdInterface)(const double *, double *, int, const double *, const double *, int, void *)
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 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 isInList(const classType value, const List< classType > &list)
check whether a value is in the list
static globalIndex genGlobalIndex(const label localIndexSize)
generate global index numbering for local-global index transferring