-
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
base: develop
Are you sure you want to change the base?
Conversation
…curves instead of tables
# Conflicts: # src/coreComponents/constitutive/CMakeLists.txt # src/coreComponents/constitutive/capillaryPressure/CapillaryPressureBase.cpp # src/coreComponents/constitutive/capillaryPressure/CapillaryPressureExtrinsicData.hpp # src/coreComponents/constitutive/relativePermeability/RelativePermeabilityExtrinsicData.hpp # src/coreComponents/constitutive/relativePermeability/TableRelativePermeabilityHysteresis.cpp # src/coreComponents/constitutive/thermalConductivity/MultiPhaseThermalConductivityFields.hpp # src/coreComponents/constitutive/thermalConductivity/SinglePhaseThermalConductivityFields.hpp # src/coreComponents/constitutive/thermalConductivity/ThermalConductivityFields.hpp # src/coreComponents/physicsSolvers/fluidFlow/CompositionalMultiphaseBase.cpp
TableRelativePermeabilityHysteresis
We face some GPU issue IIRC, let us fix that soon |
any update? |
b9e1ae5
to
fdbfbd1
Compare
@jafranc Can you merge develop into this and one of us will tackle the GPU compilation issues? |
…esis # Conflicts: # integratedTests # src/coreComponents/constitutive/CMakeLists.txt # src/coreComponents/constitutive/relativePermeability/TableRelativePermeabilityHysteresis.cpp # src/coreComponents/constitutive/relativePermeability/TableRelativePermeabilityHysteresis.hpp # src/coreComponents/constitutive/thermalConductivity/SinglePhaseThermalConductivityFields.hpp # src/coreComponents/constitutiveDrivers/relativePermeability/RelpermDriverRunTest.hpp # src/coreComponents/physicsSolvers/fluidFlow/CompositionalMultiphaseBase.hpp # src/coreComponents/physicsSolvers/fluidFlow/IsothermalCompositionalMultiphaseFVMKernelUtilities.hpp # src/coreComponents/physicsSolvers/fluidFlow/wells/CompositionalMultiphaseWell.hpp # src/coreComponents/physicsSolvers/solidMechanics/SolidMechanicsLagrangianFEM.cpp # src/coreComponents/schema/docs/TableRelativePermeabilityHysteresis.rst # src/coreComponents/schema/docs/TableRelativePermeabilityHysteresis_other.rst # src/coreComponents/schema/schema.xsd.other # src/coreComponents/unitTests/constitutiveTests/CMakeLists.txt
TableRelativePermeabilityHysteresis
TableRelativePermeabilityHysteresis
@jafranc seems to build ok, is it good to merge? |
geos::real64 & phaseMax, geos::real64 & phaseMin ) | ||
{ | ||
|
||
TableCapillaryPressureHelpers::validateCapillaryPressureTable( capPresTable, fullConstitutiveName, capPresMustBeIncreasing ); |
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 :)
return m_isWetting; | ||
} | ||
|
||
// /** |
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.
remove?
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.
Right :)
Refactor
TableRelativePermeabilityHysteresis
in preparation for #2159.A
KilloughHysteresis
class will be created taking responsabilities for:HystersisCurve
type storing major point of Hysteresis curve in a fashion of{sat,value}
pair for all three points.The
KilloughHysteresis
could also be responsible for computing Land Coefficient and all imbibition values as it is specific to the model how to compute these intermediate scanning curves. It can also be specialized further down to have aKilloughHysteresisRelativePermeability
andKilloughHysteresisCapillaryPressure
.Eventually if new model improving capillary pressure treatment ( e.g Kleppe model [2]), it can be turn into a more templatized design.
Additionally,
TableRelativePermeabilityHysteresis
Rebaseline done in GEOS-DEV/integratedTests#24