

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< DAJacCon > | New (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 DAOption & | daOption_ |
| DAOption object. More... | |
| const DAModel & | daModel_ |
| DAModel object. More... | |
| const DAIndex & | daIndex_ |
| 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... | |
Definition at line 26 of file DAJacCondRdW.H.
| 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().

|
inlinevirtual |
Definition at line 74 of file DAJacCondRdW.H.
|
protected |
initialize petsc vectors
Definition at line 50 of file DAJacCondRdW.C.
References DAJacCon::daIndex_, DAJacCondRdW::dRdWPreallocOff_, DAJacCondRdW::dRdWPreallocOn_, DAJacCondRdW::dRdWTPreallocOff_, DAJacCondRdW::dRdWTPreallocOn_, DAJacCon::jacConColors_, and DAIndex::nLocalAdjointStates.
Referenced by DAJacCondRdW::DAJacCondRdW().

|
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().


|
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().

|
protected |
Definition at line 151 of file DAJacCondRdW.C.
References DAJacCon::addStateConnections(), DAIndex::adjStateNames, DAIndex::adjStateType, DAJacCondRdW::allocateJacobianConnections(), DAIndex::bFaceFaceI, DAIndex::bFacePatchI, DAJacCon::createConnectionMat(), DAJacCon::daField_, DAJacCon::daIndex_, DAJacCon::daOption_, DAJacCondRdW::dRdWPreallocOff_, DAJacCondRdW::dRdWPreallocOn_, DAJacCondRdW::dRdWTPreallocOff_, DAJacCondRdW::dRdWTPreallocOn_, forAll(), DAOption::getAllOptions(), DAIndex::getGlobalAdjointStateIndex(), DAJacCon::getLocalCoupledBFaceIndex(), DAOption::getOption(), DAIndex::globalCoupledBFaceNumbering, DAJacCon::jacCon_, k, DAJacCon::mesh_, DAIndex::nLocalInternalFaces, DAJacCon::setConnections(), DAJacCon::setupJacobianConnections(), DAField::specialBCs, DAJacCon::stateBoundaryCon_, DAJacCon::stateBoundaryConID_, DAJacCon::stateInfo_, dafoam_plot3dtransform::vals, DAUtility::writeMatrixBinary(), and DAUtility::writeVectorASCII().
Referenced by DAJacCondRdW::setupJacCon(), and DAJacCondRdW::setupJacConPreallocation().


| TypeName | ( | "dRdW" | ) |
|
virtual |
calculate the
Reimplemented from DAJacCon.
Definition at line 78 of file DAJacCondRdW.C.
References DAJacCondRdW::setupdRdWCon().

|
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().

|
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().

|
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().

|
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_.

|
protected |
Definition at line 33 of file DAJacCondRdW.H.
Referenced by DAJacCondRdW::clear(), DAJacCondRdW::initializePetscVecs(), DAJacCondRdW::preallocatedRdW(), and DAJacCondRdW::setupdRdWCon().
|
protected |
Definition at line 34 of file DAJacCondRdW.H.
Referenced by DAJacCondRdW::clear(), DAJacCondRdW::initializePetscVecs(), DAJacCondRdW::preallocatedRdW(), and DAJacCondRdW::setupdRdWCon().
|
protected |
Definition at line 35 of file DAJacCondRdW.H.
Referenced by DAJacCondRdW::clear(), DAJacCondRdW::initializeJacCon(), DAJacCondRdW::initializePetscVecs(), DAJacCondRdW::preallocatedRdW(), and DAJacCondRdW::setupdRdWCon().
|
protected |
Definition at line 36 of file DAJacCondRdW.H.
Referenced by DAJacCondRdW::clear(), DAJacCondRdW::initializeJacCon(), DAJacCondRdW::initializePetscVecs(), DAJacCondRdW::preallocatedRdW(), and DAJacCondRdW::setupdRdWCon().