-
Notifications
You must be signed in to change notification settings - Fork 99
feat: MultiPhase Poromechanics Conforming Fractures (ALM) #3926
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
71baaa3
Enable MultiPhase Poromechanics Conforming Fractures (ALM)
jhuang2601 bda195a
register multiPhase ALM solver
jhuang2601 e4c412e
fix compilation error
jhuang2601 4031717
pass the compilation
jhuang2601 0f97b78
Merge branch 'develop' into feature/jhuang/multiphaseALM
jhuang2601 244b6d7
Merge branch 'develop' into feature/jhuang/multiphaseALM
jhuang2601 309d6a6
Merge branch 'develop' into feature/jhuang/multiphaseALM
jhuang2601 789a731
update smoke test for singlePhase
jhuang2601 f068417
add a smoke test for multiPhase
jhuang2601 9054a3a
delete an unnecessary file
jhuang2601 8ceec4b
update ats file
jhuang2601 bc5da42
update .integrated_tests.yaml
jhuang2601 b6b9d20
update BASELINE_NOTES.md
jhuang2601 181b174
update smoke test for MPI run
jhuang2601 180e9bd
update tag for integratedTest
jhuang2601 9c8c4d6
update schema
jhuang2601 f860c0c
update xml file
jhuang2601 7d9b99b
Update src/coreComponents/physicsSolvers/multiphysics/MultiphasePorom…
jhuang2601 076279b
Update src/coreComponents/physicsSolvers/multiphysics/MultiphasePorom…
jhuang2601 91afa2c
Update src/coreComponents/physicsSolvers/multiphysics/MultiphasePorom…
jhuang2601 1f676c0
Merge branch 'develop' into feature/jhuang/multiphaseALM
rrsettgast 7a8ef8f
update integratedTest tags
jhuang2601 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
198 changes: 198 additions & 0 deletions
198
...eComponents/physicsSolvers/multiphysics/MultiphasePoromechanicsConformingFracturesALM.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,198 @@ | ||
| /* | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| * SPDX-License-Identifier: LGPL-2.1-only | ||
| * | ||
| * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | ||
| * Copyright (c) 2018-2024 TotalEnergies | ||
| * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | ||
| * Copyright (c) 2023-2024 Chevron | ||
| * Copyright (c) 2019- GEOS/GEOSX Contributors | ||
| * All rights reserved | ||
| * | ||
| * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details. | ||
| * ------------------------------------------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| /** | ||
| * @file MultiphasePoromechanicsConformingFracturesALM.cpp | ||
| */ | ||
|
|
||
| #include "MultiphasePoromechanicsConformingFracturesALM.hpp" | ||
|
|
||
| #include "finiteVolume/FluxApproximationBase.hpp" | ||
|
|
||
| namespace geos | ||
| { | ||
|
|
||
| using namespace constitutive; | ||
| using namespace dataRepository; | ||
| using namespace fields; | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::MultiphasePoromechanicsConformingFracturesALM( const string & name, | ||
| Group * const parent ) | ||
| : Base( name, parent ) | ||
| {} | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::setupCoupling( DomainPartition const & domain, | ||
| DofManager & dofManager ) const | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( domain, dofManager ); | ||
|
|
||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
|
|
||
| } | ||
|
|
||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::setupSystem( DomainPartition & domain, | ||
| DofManager & dofManager, | ||
| CRSMatrix< real64, globalIndex > & localMatrix, | ||
| ParallelVector & rhs, | ||
| ParallelVector & solution, | ||
| bool const setSparsity ) | ||
| { | ||
|
|
||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( domain, dofManager, localMatrix, rhs, solution, setSparsity ); | ||
|
|
||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
|
|
||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::assembleSystem( real64 const time_n, | ||
| real64 const dt, | ||
| DomainPartition & domain, | ||
| DofManager const & dofManager, | ||
| CRSMatrixView< real64, globalIndex const > const & localMatrix, | ||
| arrayView1d< real64 > const & localRhs ) | ||
| { | ||
|
|
||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( time_n, dt, domain, dofManager, localMatrix, localRhs ); | ||
|
|
||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::assembleElementBasedContributions( real64 const time_n, | ||
| real64 const dt, | ||
| DomainPartition & domain, | ||
| DofManager const & dofManager, | ||
| CRSMatrixView< real64, globalIndex const > const & localMatrix, | ||
| arrayView1d< real64 > const & localRhs ) | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( time_n, dt, domain, dofManager, localMatrix, localRhs ); | ||
|
|
||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
|
|
||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::assembleCouplingTerms( real64 const time_n, | ||
| real64 const dt, | ||
| DomainPartition const & domain, | ||
| DofManager const & dofManager, | ||
| CRSMatrixView< real64, globalIndex const > const & localMatrix, | ||
| arrayView1d< real64 > const & localRhs ) | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
| GEOS_UNUSED_VAR( domain, dofManager, localMatrix, localRhs, time_n, dt ); | ||
|
|
||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >::updateState( DomainPartition & domain ) | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
| GEOS_UNUSED_VAR( domain ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >:: | ||
| setUpDflux_dApertureMatrix( DomainPartition & domain, | ||
| DofManager const & GEOS_UNUSED_PARAM( dofManager ), | ||
| CRSMatrix< real64, globalIndex > & localMatrix ) | ||
| { | ||
| GEOS_UNUSED_VAR( domain, localMatrix ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
jhuang2601 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >:: | ||
| addTransmissibilityCouplingNNZ( DomainPartition const & domain, | ||
| DofManager const & dofManager, | ||
| arrayView1d< localIndex > const & rowLengths ) const | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( domain, dofManager, rowLengths ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
|
|
||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >:: | ||
| addTransmissibilityCouplingPattern( DomainPartition const & domain, | ||
| DofManager const & dofManager, | ||
| SparsityPatternView< globalIndex > const & pattern ) const | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( domain, dofManager, pattern ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >:: | ||
| assembleForceResidualDerivativeWrtPressure( string const & meshName, | ||
| MeshLevel const & mesh, | ||
| arrayView1d< string const > const & regionNames, | ||
| DofManager const & dofManager, | ||
| CRSMatrixView< real64, globalIndex const > const & localMatrix, | ||
| arrayView1d< real64 > const & localRhs ) | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( meshName, mesh, regionNames, dofManager, localMatrix, localRhs ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
| } | ||
|
|
||
| template< typename FLOW_SOLVER > | ||
| void MultiphasePoromechanicsConformingFracturesALM< FLOW_SOLVER >:: | ||
| assembleFluidMassResidualDerivativeWrtDisplacement( MeshLevel const & mesh, | ||
| arrayView1d< string const > const & regionNames, | ||
| DofManager const & dofManager, | ||
| CRSMatrixView< real64, globalIndex const > const & localMatrix, | ||
| arrayView1d< real64 > const & GEOS_UNUSED_PARAM( localRhs ) ) | ||
| { | ||
| GEOS_MARK_FUNCTION; | ||
|
|
||
| GEOS_UNUSED_VAR( mesh, regionNames, dofManager, localMatrix ); | ||
| GEOS_ERROR( "MultiphasePoromechanicsConformingFracturesALM does not support FullyImplicit coupling type." ); | ||
|
|
||
| } | ||
|
|
||
|
|
||
| template class MultiphasePoromechanicsConformingFracturesALM<>; | ||
| template class MultiphasePoromechanicsConformingFracturesALM< CompositionalMultiphaseReservoirAndWells<> >; | ||
|
|
||
| namespace | ||
| { | ||
| typedef MultiphasePoromechanicsConformingFracturesALM< CompositionalMultiphaseReservoirAndWells<> > MultiphaseReservoirPoromechanicsConformingFracturesALM; | ||
| REGISTER_CATALOG_ENTRY( PhysicsSolverBase, MultiphaseReservoirPoromechanicsConformingFracturesALM, string const &, Group * const ) | ||
| typedef MultiphasePoromechanicsConformingFracturesALM<> MultiphasePoromechanicsConformingFracturesALM; | ||
| REGISTER_CATALOG_ENTRY( PhysicsSolverBase, MultiphasePoromechanicsConformingFracturesALM, string const &, Group * const ) | ||
| } | ||
|
|
||
| } /* namespace geos */ | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.