List of all members
DAJacCondRdW Class Reference
Inheritance diagram for DAJacCondRdW:
Inheritance graph
[legend]
Collaboration diagram for DAJacCondRdW:
Collaboration graph
[legend]

on- and off-diagonal preallocation sizes for each row of dRdW, dRdWT, and dRdXv

Vec dRdWTPreallocOn_
 
Vec dRdWTPreallocOff_
 
Vec dRdWPreallocOn_
 
Vec dRdWPreallocOff_
 
void initializePetscVecs ()
 initialize petsc vectors More...
 
void allocateJacobianConnections (Vec preallocOnProc, Vec preallocOffProc, Vec preallocOnProcT, Vec preallocOffProcT, Mat connections, const label row)
 compute preallocation vectors More...
 
void preallocateJacobianMatrix (Mat dRMat, const Vec preallocOnProc, const Vec preallocOffProc) const
 compute preallocation vectors More...
 
void setupdRdWCon (const HashTable< List< List< word >>> &stateResConInfo, const label isPrealloc)
 
 TypeName ("dRdW")
 
 DAJacCondRdW (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
 
virtual ~DAJacCondRdW ()
 
virtual void setupJacConPreallocation (const dictionary &options)
 calculate the More...
 
virtual void initializeJacCon (const dictionary &options)
 initialize the state Jacobian connectivity matrix More...
 
virtual void setupJacCon (const dictionary &options)
 assign 1 to all non-zero elements for the Jacobian connecitivyt matrix More...
 
virtual void preallocatedRdW (Mat dRMat, const label transposed) const
 preallocate memory for dRdW using the computed preallocation vectors More...
 
virtual void clear ()
 clear members in parent and child objects More...
 

Additional Inherited Members

- Public Member Functions inherited from DAJacCon
 TypeName ("DAJacCon")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, DAJacCon, dictionary,(const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex),(modelType, mesh, daOption, daModel, daIndex))
 
 DAJacCon (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
 
virtual ~DAJacCon ()
 
label getNJacConColors () const
 get the number of JacCon colors More...
 
void calcJacConColoring (const word postFix="")
 compute graph coloring for Jacobian connectivity matrix More...
 
void readJacConColoring (const word postFix="")
 read colors for JacCon More...
 
label coloringExists (const word postFix="") const
 whether the coloring file exists More...
 
Vec getJacConColor () const
 return DAJacCon::jacConColors_ More...
 
void calcColoredColumns (const label colorI, Vec coloredColumn) const
 calculate the colored column vector More...
 
virtual void setObjFuncVec (scalarList objFuncFaceValues, scalarList objFuncCellValues, Vec objFuncVec) const
 assign values for the objective function vector based on the face and cell value lists More...
 
- Static Public Member Functions inherited from DAJacCon
static autoPtr< DAJacConNew (const word modelType, const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
 
- Protected Member Functions inherited from DAJacCon
void initializeStateBoundaryCon ()
 initialize state boundary connection More...
 
void calcNeiBFaceGlobalCompact (labelList &neiBFaceGlobalCompact)
 calculate DAJacCon::neiBFaceGlobalCompact_ More...
 
label getLocalCoupledBFaceIndex (const label localFaceI) const
 given a local face index, return the local index of the coupled boundary face More...
 
void setupStateBoundaryCon (Mat *stateBoundaryCon)
 calculate DAJacCon::stateBoundaryCon_ More...
 
void setupStateBoundaryConID (Mat *stateBoundaryConID)
 calculate DAJacCon::stateBoundaryConID_ More...
 
void createConnectionMat (Mat *connectedStates)
 allocate connectedState matrix More...
 
void addStateConnections (Mat connections, const label cellI, const label connectedLevelLocal, const wordList connectedStatesLocal, const List< List< word >> connectedStateInterProc, const label addFace)
 a high-level function to add connected state column indices to the connectivity matrix More...
 
void setConnections (Mat conMat, const label idx) const
 add value 1 for the colume idx to conMat More...
 
void setupJacobianConnections (Mat conMat, Mat connections, const label idxI)
 assign values in connections to a specific row idxI in conMat More...
 
void combineStateBndCon (Mat *stateBoundaryCon, Mat *stateBoundaryConTmp)
 combine stateBoundaryCon and stateBoundaryConTmp, this is to ensure including all connected states for parallel cases More...
 
void addConMatCell (Mat conMat, const label gRow, const label cellI, const word stateName, const PetscScalar val)
 add val to the gRow row in conMat, the column indice are the state (given by stateName) for a given cellI More...
 
void addConMatNeighbourCells (Mat conMat, const label gRow, const label cellI, const word stateName, const PetscScalar val)
 add val to gRow row in conMat, column indice are the neighbouring states (given by stateName) for a given cellI More...
 
void addConMatCellFaces (Mat conMat, const label gRow, const label cellI, const word stateName, const PetscScalar val)
 add val to gRow row in conMat, column indice are the faces (given by stateName) for a given cellI More...
 
void addBoundaryFaceConnections (Mat conMat, const label gRow, const label cellI, const labelList v, const List< List< word >> connectedStates, const label addFaces)
 add the column index of the (iner-proc) connected states and faces to conMat, given a local face index More...
 
void clearDAJacConMembers ()
 clear members in DAJacCon More...
 
void checkSpecialBCs ()
 check if there is special boundary conditions that need special treatment in jacCon_ More...
 
void setPIVVec (Vec iSPIV, const label idxI)
 function used to add connectivity for pressureInletVelocity More...
 
label addPhi4PIV (const word stateName, const label idxI, const label comp=-1)
 add connectivity phi for pressureInletVelocity More...
 
- Protected Attributes inherited from DAJacCon
const word modelType_
 the name of the jacCon matrix More...
 
const fvMesh & mesh_
 fvMesh More...
 
const DAOptiondaOption_
 DAOption object. More...
 
const DAModeldaModel_
 DAModel object. More...
 
const DAIndexdaIndex_
 DAIndex object. More...
 
DAColoring daColoring_
 DAColoring object. More...
 
DAField daField_
 DAField object. More...
 
HashTable< wordList > stateInfo_
 the regState_ list from DAStateInfo object More...
 
Mat stateBoundaryCon_
 matrix to store boundary connectivity levels for state Jacobians More...
 
Mat stateBoundaryConID_
 matrix to store boundary connectivity ID for state Jacobians More...
 
labelList neiBFaceGlobalCompact_
 neibough face global index for a given local boundary face More...
 
Mat jacCon_
 Jacobian connectivity mat. More...
 
Vec jacConColors_
 jacCon matrix colors More...
 
label nJacConColors_
 number of jacCon colors More...
 
Vec isPIVBCState_
 a vector to show whether a state is connected to a pressureInletVelocity boundary face (3 level max) More...
 

Detailed Description

Definition at line 26 of file DAJacCondRdW.H.

Constructor & Destructor Documentation

◆ DAJacCondRdW()

DAJacCondRdW ( const word  modelType,
const fvMesh &  mesh,
const DAOption daOption,
const DAModel daModel,
const DAIndex daIndex 
)

Definition at line 19 of file DAJacCondRdW.C.

References DAJacCondRdW::initializePetscVecs(), and DAJacCon::initializeStateBoundaryCon().

Here is the call graph for this function:

◆ ~DAJacCondRdW()

virtual ~DAJacCondRdW ( )
inlinevirtual

Definition at line 74 of file DAJacCondRdW.H.

Member Function Documentation

◆ initializePetscVecs()

void initializePetscVecs ( )
protected

◆ allocateJacobianConnections()

void allocateJacobianConnections ( Vec  preallocOnProc,
Vec  preallocOffProc,
Vec  preallocOnProcT,
Vec  preallocOffProcT,
Mat  connections,
const label  row 
)
protected

compute preallocation vectors

Definition at line 714 of file DAJacCondRdW.C.

References DAJacCon::daIndex_, DAIndex::globalAdjointStateNumbering, DAUtility::isValueCloseToRef(), DAIndex::nLocalAdjointStates, and dafoam_plot3dtransform::vals.

Referenced by DAJacCondRdW::setupdRdWCon().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ preallocateJacobianMatrix()

void preallocateJacobianMatrix ( Mat  dRMat,
const Vec  preallocOnProc,
const Vec  preallocOffProc 
) const
protected

compute preallocation vectors

Definition at line 803 of file DAJacCondRdW.C.

References DAJacCon::daIndex_, and DAIndex::nLocalAdjointStates.

Referenced by DAJacCondRdW::initializeJacCon(), and DAJacCondRdW::preallocatedRdW().

Here is the caller graph for this function:

◆ setupdRdWCon()

void setupdRdWCon ( const HashTable< List< List< word >>> &  stateResConInfo,
const label  isPrealloc 
)
protected

◆ TypeName()

TypeName ( "dRdW"  )

◆ setupJacConPreallocation()

void setupJacConPreallocation ( const dictionary &  options)
virtual

calculate the

Reimplemented from DAJacCon.

Definition at line 78 of file DAJacCondRdW.C.

References DAJacCondRdW::setupdRdWCon().

Here is the call graph for this function:

◆ initializeJacCon()

void initializeJacCon ( const dictionary &  options)
virtual

initialize the state Jacobian connectivity matrix

Implements DAJacCon.

Definition at line 119 of file DAJacCondRdW.C.

References DAJacCon::daIndex_, DAJacCon::daOption_, DAJacCondRdW::dRdWPreallocOff_, DAJacCondRdW::dRdWPreallocOn_, DAOption::getOption(), DAJacCon::jacCon_, DAIndex::nLocalAdjointStates, and DAJacCondRdW::preallocateJacobianMatrix().

Here is the call graph for this function:

◆ setupJacCon()

void setupJacCon ( const dictionary &  options)
virtual

assign 1 to all non-zero elements for the Jacobian connecitivyt matrix

Implements DAJacCon.

Definition at line 101 of file DAJacCondRdW.C.

References DAJacCondRdW::setupdRdWCon().

Here is the call graph for this function:

◆ preallocatedRdW()

void preallocatedRdW ( Mat  dRMat,
const label  transposed 
) const
virtual

preallocate memory for dRdW using the computed preallocation vectors

Reimplemented from DAJacCon.

Definition at line 858 of file DAJacCondRdW.C.

References DAJacCondRdW::dRdWPreallocOff_, DAJacCondRdW::dRdWPreallocOn_, DAJacCondRdW::dRdWTPreallocOff_, DAJacCondRdW::dRdWTPreallocOn_, and DAJacCondRdW::preallocateJacobianMatrix().

Here is the call graph for this function:

◆ clear()

void clear ( )
virtual

clear members in parent and child objects

Implements DAJacCon.

Definition at line 34 of file DAJacCondRdW.C.

References DAJacCon::clearDAJacConMembers(), DAJacCondRdW::dRdWPreallocOff_, DAJacCondRdW::dRdWPreallocOn_, DAJacCondRdW::dRdWTPreallocOff_, and DAJacCondRdW::dRdWTPreallocOn_.

Here is the call graph for this function:

Member Data Documentation

◆ dRdWTPreallocOn_

Vec dRdWTPreallocOn_
protected

◆ dRdWTPreallocOff_

Vec dRdWTPreallocOff_
protected

◆ dRdWPreallocOn_

Vec dRdWPreallocOn_
protected

◆ dRdWPreallocOff_

Vec dRdWPreallocOff_
protected

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