Go to the documentation of this file.
30 template<
class RhoFieldType>
31 void Foam::porosityModels::DarcyForchheimer::apply
36 const RhoFieldType&
rho,
50 const label celli =
cells[i];
53 mu[celli]*dZones[j] + (
rho[celli]*
mag(
U[celli]))*fZones[j];
55 const scalar isoCd =
tr(Cd);
57 Udiag[celli] += V[celli]*isoCd;
58 Usource[celli] -= V[celli]*((Cd -
I*isoCd) &
U[celli]);
64 template<
class RhoFieldType>
65 void Foam::porosityModels::DarcyForchheimer::apply
68 const RhoFieldType&
rho,
73 forAll(cellZoneIDs_, zoneI)
82 const label celli =
cells[i];
83 const label j = this->fieldIndex(i);
87 AU[celli] +=
mu[celli]*
D + (
rho[celli]*
mag(
U[celli]))*
F;
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionedScalar mu
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
volVectorField F(fluid.F())
Field< vector > vectorField
Specialisation of Field<T> for vector.
const cellZoneMesh & cellZones() const noexcept
label fieldIndex(const label index) const
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar & D
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
static const Identity< scalar > I