Skip to content

Commit

Permalink
Made surface hydrostatic pressure for mu(I) models a member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
siddanib committed Nov 8, 2024
1 parent 9d6dc26 commit 8974a9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/incflo.H
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ private:
amrex::Real m_mu_p_eps_second = amrex::Real(1.0e-4);
// epsilon value to strain rate magnitude while calculating dynamic viscosity
amrex::Real m_mu_sr_eps_second = amrex::Real(1.0e-3);
// Variable for surface pressure in mu(I) model
amrex::Real m_mu_p_surf_second = amrex::Real(0.);
// These are related to level set method
// Coefficient d that is used in level set
amrex::Real m_level_set_d = amrex::Real(0.1);
Expand Down
3 changes: 2 additions & 1 deletion src/rheology/incflo_rheology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ void incflo::compute_nodal_viscosity_at_level (int lev,
compute_nodal_strainrate_at_level(lev,&sr_mf,vel,lev_geom,time,nghost);
// nodal MultiFab for hydrostatic pressure
MultiFab p_static(vel_eta->boxArray(),vel_eta->DistributionMap(),1,nghost);
compute_nodal_hydrostatic_pressure_at_level(lev,&p_static,rho,Real(0.0),
compute_nodal_hydrostatic_pressure_at_level(lev,&p_static,rho,
m_mu_p_surf_second,
lev_geom,nghost);

#ifdef USE_AMREX_MPMD
Expand Down
6 changes: 3 additions & 3 deletions src/utilities/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ void incflo::WritePlotFile()

compute_nodal_hydrostatic_pressure_at_level(lev,&p_static,
&m_leveldata[lev]->density,
Real(0.0),
m_mu_p_surf_second,
Geom(lev),0);

MultiFab strainrate(amrex::convert(mf[lev].boxArray(),
Expand Down Expand Up @@ -779,7 +779,7 @@ void incflo::WritePlotFile()

compute_nodal_hydrostatic_pressure_at_level(lev,&p_static,
&m_leveldata[lev]->density,
Real(0.0),
m_mu_p_surf_second,
Geom(lev),0);

MultiFab strainrate(amrex::convert(mf[lev].boxArray(),
Expand Down Expand Up @@ -818,7 +818,7 @@ void incflo::WritePlotFile()

compute_nodal_hydrostatic_pressure_at_level(lev,&p_static,
&m_leveldata[lev]->density,
Real(0.0),
m_mu_p_surf_second,
Geom(lev),0);
amrex::average_node_to_cellcenter(mf[lev],icomp,p_static,0,1);
}
Expand Down

0 comments on commit 8974a9e

Please sign in to comment.