Skip to content

Commit

Permalink
Update SinglePhaseBase.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltomin authored Jul 5, 2024
1 parent fa97b6a commit 3839b4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,12 @@ void SinglePhaseBase::initializePostInitialConditionsPreSubGroups()
{
region.forElementSubRegions< FaceElementSubRegion >( [&]( FaceElementSubRegion & subRegion )
{
ConstitutiveBase & fluid = getConstitutiveModel( subRegion, subRegion.getReference< string >( viewKeyStruct::fluidNamesString() ) );
real64 const defaultDensity = getFluidProperties( fluid ).defaultDensity;

subRegion.getWrapper< real64_array >( fields::flow::hydraulicAperture::key() ).
setApplyDefaultValue( region.getDefaultAperture() );

SingleFluidBase & fluid =
getConstitutiveModel< SingleFluidBase >( subRegion, subRegion.getReference< string >( FlowSolverBase::viewKeyStruct::fluidNamesString() ) );
real64 const defaultDensity = fluid.defaultDensity();
subRegion.getWrapper< real64_array >( FaceElementSubRegion::viewKeyStruct::creationMassString() ).
setApplyDefaultValue( defaultDensity * region.getDefaultAperture() );
} );
Expand Down

0 comments on commit 3839b4a

Please sign in to comment.