Skip to content

Commit da09d60

Browse files
committed
correctly deal with bulk viscosity
1 parent 94d12b4 commit da09d60

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

src_compressible/compressible_functions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,14 @@ void InitializeCompressibleNamespace()
8282
do_reservoir = true;
8383
}
8484

85+
#if defined(PELEPHYSICS)
86+
#else
8587
// bulk viscosity ratio
8688
pp.query("zeta_ratio",zeta_ratio);
8789
if ((amrex::Math::abs(visc_type) == 3) and (zeta_ratio < 0.0)) amrex::Abort("need non-negative zeta_ratio (ratio of bulk to shear viscosity) for visc_type = 3 (use bulk viscosity)");
8890
if ((amrex::Math::abs(visc_type) == 3) and (zeta_ratio >= 0.0)) amrex::Print() << "bulk viscosity model selected; bulk viscosity ratio is: " << zeta_ratio << "\n";
89-
91+
#endif
92+
9093
// initial pressure
9194
pp.query("p_init",p_init);
9295
if ((rho0 > 0.0) and (T_init[0] > 0.) and (p_init > 0.0)) amrex::Abort("can not specify initial pressure, temperature and density. Set either p_init negative (to compute p_init), or rho0 negative (to compute rho0)");

src_compressible/transCoeffs.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ void calculateTransportCoeffs(const MultiFab& prim_in,
9696
}
9797
}
9898

99-
// set bulk viscosity
100-
if (amrex::Math::abs(visc_type) == 3) {
101-
zeta(i,j,k) = zeta_ratio * eta(i,j,k);
102-
}
103-
104-
10599
});
106100
}
107101
}

0 commit comments

Comments
 (0)