mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: atmBoundaryLayer: missing mapping functions
This commit is contained in:
@ -71,9 +71,9 @@ atmBoundaryLayerInletEpsilonFvPatchScalarField
|
|||||||
kappa_(ptf.kappa_),
|
kappa_(ptf.kappa_),
|
||||||
Uref_(ptf.Uref_),
|
Uref_(ptf.Uref_),
|
||||||
Href_(ptf.Href_),
|
Href_(ptf.Href_),
|
||||||
z0_(ptf.z0_),
|
z0_(ptf.z0_, mapper),
|
||||||
zGround_(ptf.zGround_),
|
zGround_(ptf.zGround_, mapper),
|
||||||
Ustar_(ptf.Ustar_)
|
Ustar_(ptf.Ustar_, mapper)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -68,14 +68,14 @@ atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchVectorField(ptf, p, iF, mapper),
|
fixedValueFvPatchVectorField(ptf, p, iF, mapper),
|
||||||
Ustar_(ptf.Ustar_),
|
Ustar_(ptf.Ustar_, mapper),
|
||||||
n_(ptf.n_),
|
n_(ptf.n_),
|
||||||
z_(ptf.z_),
|
z_(ptf.z_),
|
||||||
z0_(ptf.z0_),
|
z0_(ptf.z0_, mapper),
|
||||||
kappa_(ptf.kappa_),
|
kappa_(ptf.kappa_),
|
||||||
Uref_(ptf.Uref_),
|
Uref_(ptf.Uref_),
|
||||||
Href_(ptf.Href_),
|
Href_(ptf.Href_),
|
||||||
zGround_(ptf.zGround_)
|
zGround_(ptf.zGround_, mapper)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -145,6 +145,35 @@ atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void atmBoundaryLayerInletVelocityFvPatchVectorField::autoMap
|
||||||
|
(
|
||||||
|
const fvPatchFieldMapper& m
|
||||||
|
)
|
||||||
|
{
|
||||||
|
fixedValueFvPatchVectorField::autoMap(m);
|
||||||
|
z0_.autoMap(m);
|
||||||
|
zGround_.autoMap(m);
|
||||||
|
Ustar_.autoMap(m);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void atmBoundaryLayerInletVelocityFvPatchVectorField::rmap
|
||||||
|
(
|
||||||
|
const fvPatchVectorField& ptf,
|
||||||
|
const labelList& addr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
fixedValueFvPatchVectorField::rmap(ptf, addr);
|
||||||
|
|
||||||
|
const atmBoundaryLayerInletVelocityFvPatchVectorField& blptf =
|
||||||
|
refCast<const atmBoundaryLayerInletVelocityFvPatchVectorField>(ptf);
|
||||||
|
|
||||||
|
z0_.rmap(blptf.z0_, addr);
|
||||||
|
zGround_.rmap(blptf.zGround_, addr);
|
||||||
|
Ustar_.rmap(blptf.Ustar_, addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void atmBoundaryLayerInletVelocityFvPatchVectorField::updateCoeffs()
|
void atmBoundaryLayerInletVelocityFvPatchVectorField::updateCoeffs()
|
||||||
{
|
{
|
||||||
const vectorField& c = patch().Cf();
|
const vectorField& c = patch().Cf();
|
||||||
|
|||||||
@ -198,9 +198,28 @@ public:
|
|||||||
return z_;
|
return z_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mapping functions
|
||||||
|
|
||||||
|
//- Map (and resize as needed) from self given a mapping object
|
||||||
|
virtual void autoMap
|
||||||
|
(
|
||||||
|
const fvPatchFieldMapper&
|
||||||
|
);
|
||||||
|
|
||||||
|
//- Reverse map the given fvPatchField onto this fvPatchField
|
||||||
|
virtual void rmap
|
||||||
|
(
|
||||||
|
const fvPatchVectorField&,
|
||||||
|
const labelList&
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Evaluation functions
|
||||||
|
|
||||||
//- Update coefficients
|
//- Update coefficients
|
||||||
virtual void updateCoeffs();
|
virtual void updateCoeffs();
|
||||||
|
|
||||||
|
|
||||||
//- Write
|
//- Write
|
||||||
virtual void write(Ostream&) const;
|
virtual void write(Ostream&) const;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user