Skip to content

Commit

Permalink
Add the option to zero visc the diffusivity and thus add the zero_visc (
Browse files Browse the repository at this point in the history
#60)

* Add the option to zero visc the diffusivity and thus add the zero_visc
kernel to all the pelelm_prob.H

* Domain is now used even with EB
  • Loading branch information
esclapez authored Mar 9, 2022
1 parent 8cbf143 commit 8ea9ba8
Show file tree
Hide file tree
Showing 27 changed files with 376 additions and 30 deletions.
16 changes: 16 additions & 0 deletions Exec/Cases/CounterFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,20 @@ bcnormal(
s_ext[VELX] = -vel;
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Cases/JetInCrossflow/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,20 @@ void bcnormal(const amrex::Real x[AMREX_SPACEDIM], const int m_nAux,
}
}


AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
17 changes: 10 additions & 7 deletions Exec/Cases/NormalJet_OpenDomain/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,16 @@ bcnormal(
AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int /*i*/, int /*j*/, int /*k*/,
amrex::Array4<amrex::Real> const& /*beta*/,
amrex::GeometryData const& /*geomdata*/,
amrex::Box const& /*dBox*/,
const int /*dir*/,
const int /*state_comp*/,
const int /*nComp*/)
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Cases/PremBunsen2D/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,20 @@ bcnormal(
}
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Cases/PremBunsen3D/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,20 @@ bcnormal(
}
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Cases/TripleFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,20 @@ bcnormal(
}

}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Efield/FlameSheetIons/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,20 @@ bcnormal(
}
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/Efield/IonizedAirWave/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,20 @@ bcnormal(
}
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EB_ChallengeProblem/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,20 @@ bcnormal(
{
const amrex::Real* prob_lo = geomdata.ProbLo();
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EB_EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,20 @@ bcnormal(
{
const amrex::Real* prob_lo = geomdata.ProbLo();
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EB_EnclosedVortex/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,20 @@ bcnormal(
{
const amrex::Real* prob_lo = geomdata.ProbLo();
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EB_FlowPastCylinder/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,20 @@ bcnormal(
s_ext[FIRSTSPEC+n] = massfrac[n] * s_ext[DENSITY];
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EB_PipeFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,20 @@ bcnormal(
s_ext[FIRSTSPEC+n] = massfrac[n] * s_ext[DENSITY];
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,20 @@ bcnormal(
{
const amrex::Real* prob_lo = geomdata.ProbLo();
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/FlameSheet/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,20 @@ bcnormal(
}
}
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/HITDecay/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,20 @@ bcnormal(
{
const amrex::Real* prob_lo = geomdata.ProbLo();
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/HotBubble/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,20 @@ bcnormal(
{

}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
16 changes: 16 additions & 0 deletions Exec/RegTests/PeriodicCases/pelelm_prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,20 @@ bcnormal(
pele::physics::PMF::PmfData::DataContainer const * /*pmf_data*/)
{
}

AMREX_GPU_DEVICE
AMREX_FORCE_INLINE
void
zero_visc (int i, int j, int k,
amrex::Array4<amrex::Real> const& beta,
amrex::GeometryData const& geomdata,
amrex::Box const& domainBox,
const int dir,
const int beta_comp,
const int nComp)
{
amrex::ignore_unused(i,j,k,beta,geomdata,domainBox,dir,beta_comp,nComp);
// We treat species when beta_comp == 0 and nComp == NUM_SPECIES
// otherwise this routine could be called for other face diffusivity (Temp, velocity, ...)
}
#endif
Loading

0 comments on commit 8ea9ba8

Please sign in to comment.