8 const volScalarField& porosity =
tporosity.cref();
10 const word porosityModel(
"JensenEtAl2014");
11 const dictionary&
dict =
13 const dimensionedScalar
alpha(dimless/dimArea,
dict.get<scalar>(
"alpha"));
14 const dimensionedScalar
beta(dimless/dimLength,
dict.get<scalar>(
"beta"));
15 const dimensionedScalar d50(dimless,
dict.get<scalar>(
"d50"));
16 const dimensionedScalar KC(dimless,
dict.get<scalar>(
"KC"));
22 volScalarField DarcyForchheimerCoeff
24 alpha*sqr(1 - porosity)*
mixture.mu()/sqr(porosity)/sqr(d50)
28 DarcyForchheimerCoeff +=
rho*mag(
U)
29 *
beta*(1 + pos(KC)*7.5/KC)*(1 - porosity)/sqr(porosity)/d50;
32 UEqn += fvm::Sp(DarcyForchheimerCoeff,
U);
37 const dimensionedScalar gamma_p(dimless,
dict.get<scalar>(
"gamma_p"));
38 const volScalarField Cm(gamma_p*(1 - porosity));
47 UEqn *= scalar(1)/porosity;
IOdictionary porosityProperties(IOobject("porosityProperties", runTime.constant(), runTime, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE))
const bool porosityEnabled(porosityProperties.getOrDefault< bool >("porosityEnabled", false))
tmp< volScalarField > tporosity
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture