Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add a few comments and small code fixes in addTransmissibilityCouplingPattern for poromechanics with conforming fractures #3250

Merged
merged 19 commits into from
Aug 16, 2024
Merged
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ addTransmissibilityCouplingPattern( DomainPartition const & domain,
// Get the finite volume method used to compute the stabilization
NumericalMethodsManager const & numericalMethodManager = domain.getNumericalMethodManager();
FiniteVolumeManager const & fvManager = numericalMethodManager.getFiniteVolumeManager();
FluxApproximationBase const & stabilizationMethod = fvManager.getFluxApproximation( this->solidMechanicsSolver()->getStabilizationName() );
FluxApproximationBase const & stabilizationMethod = fvManager.getFluxApproximation( this->flowSolver()->getDiscretizationName() );
ryar9534 marked this conversation as resolved.
Show resolved Hide resolved

SurfaceElementRegion const & fractureRegion =
elemManager.getRegion< SurfaceElementRegion >( this->solidMechanicsSolver()->getUniqueFractureRegionName() );
Expand Down Expand Up @@ -405,13 +405,15 @@ addTransmissibilityCouplingPattern( DomainPartition const & domain,
for( localIndex kf = 0; kf < 2; ++kf )
{
// Set row DOF index
globalIndex const rowIndex = presDofNumber[sei[iconn][1-kf]] - rankOffset;
// Note that the 1-kf index is intentional, as this is coupling the pressure of one face cell
// to the nodes of the adjacent cell
localIndex const rowIndex = presDofNumber[sei[iconn][1-kf]] - rankOffset;

if( rowIndex > 0 && rowIndex < pattern.numRows() )
{

// Get fracture, face and region/subregion/element indices (for elements on both sides)
localIndex fractureIndex = sei[iconn][kf];
localIndex const fractureIndex = sei[iconn][kf];

// Get the number of nodes
localIndex const numNodesPerFace = faceToNodeMap.sizeOfArray( elemsToFaces[fractureIndex][0] );
Expand Down
Loading