ENH: atmBoundaryLayer: ensure PatchFunction1s are valid
This commit is contained in:
parent
ab49eaf983
commit
d92edabcb6
@ -49,8 +49,8 @@ atmBoundaryLayer::atmBoundaryLayer(const Time& time, const polyPatch& pp)
|
|||||||
zDir_(time, "zDir"),
|
zDir_(time, "zDir"),
|
||||||
Uref_(time, "Uref"),
|
Uref_(time, "Uref"),
|
||||||
Zref_(time, "Zref"),
|
Zref_(time, "Zref"),
|
||||||
z0_(),
|
z0_(nullptr),
|
||||||
d_()
|
d_(nullptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -181,10 +181,16 @@ tmp<scalarField> atmBoundaryLayer::Ustar(const scalarField& z0) const
|
|||||||
|
|
||||||
|
|
||||||
void atmBoundaryLayer::autoMap(const fvPatchFieldMapper& mapper)
|
void atmBoundaryLayer::autoMap(const fvPatchFieldMapper& mapper)
|
||||||
|
{
|
||||||
|
if (z0_)
|
||||||
{
|
{
|
||||||
z0_->autoMap(mapper);
|
z0_->autoMap(mapper);
|
||||||
|
}
|
||||||
|
if (d_)
|
||||||
|
{
|
||||||
d_->autoMap(mapper);
|
d_->autoMap(mapper);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void atmBoundaryLayer::rmap
|
void atmBoundaryLayer::rmap
|
||||||
@ -192,10 +198,16 @@ void atmBoundaryLayer::rmap
|
|||||||
const atmBoundaryLayer& abl,
|
const atmBoundaryLayer& abl,
|
||||||
const labelList& addr
|
const labelList& addr
|
||||||
)
|
)
|
||||||
|
{
|
||||||
|
if (z0_)
|
||||||
{
|
{
|
||||||
z0_->rmap(abl.z0_(), addr);
|
z0_->rmap(abl.z0_(), addr);
|
||||||
|
}
|
||||||
|
if (d_)
|
||||||
|
{
|
||||||
d_->rmap(abl.d_(), addr);
|
d_->rmap(abl.d_(), addr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
tmp<vectorField> atmBoundaryLayer::U(const vectorField& pCf) const
|
tmp<vectorField> atmBoundaryLayer::U(const vectorField& pCf) const
|
||||||
@ -266,9 +278,15 @@ void atmBoundaryLayer::write(Ostream& os) const
|
|||||||
zDir_.writeData(os);
|
zDir_.writeData(os);
|
||||||
Uref_.writeData(os);
|
Uref_.writeData(os);
|
||||||
Zref_.writeData(os);
|
Zref_.writeData(os);
|
||||||
|
if (z0_)
|
||||||
|
{
|
||||||
z0_->writeData(os) ;
|
z0_->writeData(os) ;
|
||||||
|
}
|
||||||
|
if (d_)
|
||||||
|
{
|
||||||
d_->writeData(os);
|
d_->writeData(os);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
Loading…
Reference in New Issue
Block a user