Bugfix: added mapping methods to point patch vector fields that have pointField 'p0_' member.
This commit is contained in:
parent
ce296a9354
commit
f22bc2261a
6 changed files with 120 additions and 3 deletions
|
@ -99,7 +99,7 @@ angularOscillatingDisplacementPointPatchVectorField
|
|||
angle0_(ptf.angle0_),
|
||||
amplitude_(ptf.amplitude_),
|
||||
omega_(ptf.omega_),
|
||||
p0_(ptf.p0_)
|
||||
p0_(ptf.p0_, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -122,6 +122,29 @@ angularOscillatingDisplacementPointPatchVectorField
|
|||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void angularOscillatingDisplacementPointPatchVectorField::autoMap
|
||||
(
|
||||
const PointPatchFieldMapper& m
|
||||
)
|
||||
{
|
||||
fixedValuePointPatchVectorField::autoMap(m);
|
||||
p0_.autoMap(m);
|
||||
}
|
||||
|
||||
void angularOscillatingDisplacementPointPatchVectorField::rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>& ptf,
|
||||
const labelList& addr
|
||||
)
|
||||
{
|
||||
const angularOscillatingDisplacementPointPatchVectorField& aODptf =
|
||||
refCast<const angularOscillatingDisplacementPointPatchVectorField>(ptf);
|
||||
|
||||
fixedValuePointPatchVectorField::rmap(aODptf, addr);
|
||||
p0_.rmap(aODptf.p0_, addr);
|
||||
}
|
||||
|
||||
void angularOscillatingDisplacementPointPatchVectorField::updateCoeffs()
|
||||
{
|
||||
if (this->updated())
|
||||
|
|
|
@ -138,6 +138,22 @@ public:
|
|||
|
||||
// Member functions
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
void autoMap
|
||||
(
|
||||
const PointPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Reverse map the given pointPatchField onto this pointPatchField
|
||||
void rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>&,
|
||||
const labelList&
|
||||
);
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
|
|
|
@ -99,7 +99,7 @@ angularOscillatingVelocityPointPatchVectorField
|
|||
angle0_(ptf.angle0_),
|
||||
amplitude_(ptf.amplitude_),
|
||||
omega_(ptf.omega_),
|
||||
p0_(ptf.p0_)
|
||||
p0_(ptf.p0_, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -122,6 +122,29 @@ angularOscillatingVelocityPointPatchVectorField
|
|||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void angularOscillatingVelocityPointPatchVectorField::autoMap
|
||||
(
|
||||
const PointPatchFieldMapper& m
|
||||
)
|
||||
{
|
||||
fixedValuePointPatchVectorField::autoMap(m);
|
||||
p0_.autoMap(m);
|
||||
}
|
||||
|
||||
void angularOscillatingVelocityPointPatchVectorField::rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>& ptf,
|
||||
const labelList& addr
|
||||
)
|
||||
{
|
||||
const angularOscillatingVelocityPointPatchVectorField& aOVptf =
|
||||
refCast<const angularOscillatingVelocityPointPatchVectorField>(ptf);
|
||||
|
||||
fixedValuePointPatchVectorField::rmap(aOVptf, addr);
|
||||
p0_.rmap(aOVptf.p0_, addr);
|
||||
}
|
||||
|
||||
void angularOscillatingVelocityPointPatchVectorField::updateCoeffs()
|
||||
{
|
||||
if (this->updated())
|
||||
|
|
|
@ -130,6 +130,22 @@ public:
|
|||
|
||||
// Member functions
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
void autoMap
|
||||
(
|
||||
const PointPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Reverse map the given pointPatchField onto this pointPatchField
|
||||
void rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>&,
|
||||
const labelList&
|
||||
);
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
|
|
|
@ -90,7 +90,7 @@ oscillatingVelocityPointPatchVectorField
|
|||
fixedValuePointPatchVectorField(ptf, p, iF, mapper),
|
||||
amplitude_(ptf.amplitude_),
|
||||
omega_(ptf.omega_),
|
||||
p0_(ptf.p0_)
|
||||
p0_(ptf.p0_, mapper)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -110,6 +110,29 @@ oscillatingVelocityPointPatchVectorField
|
|||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void oscillatingVelocityPointPatchVectorField::autoMap
|
||||
(
|
||||
const PointPatchFieldMapper& m
|
||||
)
|
||||
{
|
||||
fixedValuePointPatchVectorField::autoMap(m);
|
||||
p0_.autoMap(m);
|
||||
}
|
||||
|
||||
void oscillatingVelocityPointPatchVectorField::rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>& ptf,
|
||||
const labelList& addr
|
||||
)
|
||||
{
|
||||
const oscillatingVelocityPointPatchVectorField& oVptf =
|
||||
refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
|
||||
|
||||
fixedValuePointPatchVectorField::rmap(oVptf, addr);
|
||||
p0_.rmap(oVptf.p0_, addr);
|
||||
}
|
||||
|
||||
void oscillatingVelocityPointPatchVectorField::updateCoeffs()
|
||||
{
|
||||
if (this->updated())
|
||||
|
|
|
@ -128,6 +128,22 @@ public:
|
|||
|
||||
// Member functions
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
void autoMap
|
||||
(
|
||||
const PointPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Reverse map the given pointPatchField onto this pointPatchField
|
||||
void rmap
|
||||
(
|
||||
const PointPatchField
|
||||
<pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>&,
|
||||
const labelList&
|
||||
);
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
|
|
Reference in a new issue