-
Notifications
You must be signed in to change notification settings - Fork 89
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
refactor: Factoring hysteresis model out of TableRelativePermeabilityHysteresis
#2207
Open
jafranc
wants to merge
56
commits into
develop
Choose a base branch
from
jafranc/refactor/relpermHysteresis
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 47 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
87d210e
save commit before refactoring
jafranc 4e937e1
factor out Killough Parameters to be used by TableHysteresis
jafranc 81a85cc
Adding TableCapillaryPressureHysteresis class
jafranc 162b899
adding phaseVolTrapped to CapillaryBase + inheritance
jafranc b4456bf
adding Hysteresis capillary table
jafranc fa48972
few correction/missing parts
35988c4
uncrustify + some corrections
4e4956c
addding save converged state for capillary model
67a3cf7
adding headers and minor fixes
505d475
adding a test for capillary hysteresis
3da2cd5
adapt test for hyst relperm
a016798
uncrustify
c4c592e
uncrustified + bounded F ratio
6701749
added a Logic error
21f6a3b
add flags logic and correct 2phase
3da4473
flags as cell-wise fields
f766c68
adding a test case
63a086b
clean capillaryPCHyst + fix few filename convention
cc01813
init KilloughHysteresis obj through relpermClass + usage of 3-points …
c5ae8cd
start revising unitest
53e89f5
cleaning up interfaces
jafranc ea74141
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
7ce9a1b
clean up post-merge
1b60f12
fix trapped fraction
1540d0d
make KilloughHysteresis a simple helpers class
fcf366b
reorderd messed ratio
5067990
some more comments and uncrustify
32a366d
Residual clean up from branching f766c68
d60e095
Clean and made KilloughHysteresis static
6e52e30
discard wip-test
04fdd27
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
3a8b75d
post-merge/ fix minPhaseFraction getters
a01db8c
uncrustify
71ba079
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
jafranc 2fd8bca
correcting GPU and compile issue for CI
jafranc 4c37c18
restoring original namespacing
9bb24bb
fixing dataRepository::details and geosx::details clash
d3cc4b4
fixing missing marked HOST_DEVICE
9f12e94
moving defs and inlining for GPU support
jafranc 8172f34
adress Francois's comments
5c45a8f
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
dd9c747
indentation and m_isWetting as mem var
deba706
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
francoishamon de8b09d
added doxygen
francoishamon d7cd842
fixed unit test
francoishamon 820dbac
first bugfixes
francoishamon ac5edaa
fixed bug
francoishamon 825e571
Merge branch 'develop' into jafranc/refactor/relpermHysteresis
francoishamon 992deac
updated integratedTests submodule
francoishamon b681100
fixed erroneous warning message
francoishamon fdbfbd1
bugfixes and checks
francoishamon b1f8993
Merge branch 'refs/heads/develop' into jafranc/refactor/relpermHyster…
jacquesn7 836422e
first post-merge fix
jacquesn7 26a514e
forgot to register m_phaseHasHystersis flag array
jacquesn7 61fa74f
refactoring duplicate + enable STONEII use in Hysteresis
jacquesn7 34efee4
Update src/coreComponents/constitutive/relativePermeability/KilloughH…
jafranc 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 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 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 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
File renamed without changes.
File renamed without changes.
This file contains 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 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 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 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
59 changes: 59 additions & 0 deletions
59
src/coreComponents/constitutive/relativePermeability/KilloughHysteresis.cpp
This file contains 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,59 @@ | ||
/* | ||
* ------------------------------------------------------------------------------------------------------------ | ||
* SPDX-License-Identifier: LGPL-2.1-only | ||
* | ||
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | ||
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | ||
* Copyright (c) 2018-2020 TotalEnergies | ||
* Copyright (c) 2019- GEOSX Contributors | ||
* All rights reserved | ||
* | ||
* See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details. | ||
* ------------------------------------------------------------------------------------------------------------ | ||
*/ | ||
|
||
/*** | ||
* @file KilloughHysteresis.hpp | ||
*/ | ||
|
||
#include "KilloughHysteresis.hpp" | ||
|
||
|
||
namespace geos | ||
{ | ||
|
||
using namespace dataRepository; | ||
|
||
namespace constitutive | ||
{ | ||
|
||
|
||
void KilloughHysteresis::postProcessInput( real64 const & jerauldParam_a, | ||
real64 const & jerauldParam_b, | ||
real64 const & killoughCurvatureParamRelPerm ) | ||
{ | ||
GEOS_THROW_IF( jerauldParam_a < 0, | ||
GEOS_FMT( "{}: the parameter {} must be positive", | ||
catalogName(), | ||
viewKeyStruct::jerauldParameterAString() ), | ||
InputError ); | ||
|
||
GEOS_THROW_IF( jerauldParam_b < 0, | ||
GEOS_FMT( "{}: the paramater {} must be postitive", | ||
catalogName(), | ||
viewKeyStruct::jerauldParameterBString() ), | ||
InputError ); | ||
|
||
GEOS_THROW_IF( killoughCurvatureParamRelPerm < 0, | ||
GEOS_FMT( "{}: the paramater {} must be postitive", | ||
catalogName(), | ||
viewKeyStruct::killoughCurvatureParameterString() ), | ||
InputError ); | ||
|
||
} | ||
|
||
|
||
|
||
} //end namespace | ||
|
||
} //end namespace |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is happening here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC it is just refactoring but could easily be reverted to
develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems the function calls itself recursively?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the same signature so different function no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh man, this is high class :)