fvModels: Added support for mesh redistribution and load-balancing
This commit is contained in:
@ -155,4 +155,22 @@ void Foam::fv::VoFClouds::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFClouds::updateMesh(const mapPolyMesh&)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFClouds::distribute(const mapDistributePolyMesh&)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::VoFClouds::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -143,6 +143,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -182,22 +182,6 @@ void Foam::fv::VoFSolidificationMeltingSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSolidificationMeltingSource::updateMesh
|
||||
(
|
||||
const mapPolyMesh& mpm
|
||||
)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::VoFSolidificationMeltingSource::movePoints()
|
||||
{
|
||||
set_.movePoints();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSolidificationMeltingSource::correct()
|
||||
{
|
||||
if (debug)
|
||||
@ -238,6 +222,31 @@ void Foam::fv::VoFSolidificationMeltingSource::correct()
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSolidificationMeltingSource::updateMesh
|
||||
(
|
||||
const mapPolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSolidificationMeltingSource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::VoFSolidificationMeltingSource::movePoints()
|
||||
{
|
||||
set_.movePoints();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::VoFSolidificationMeltingSource::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -193,6 +193,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -147,4 +147,22 @@ void Foam::fv::VoFSurfaceFilm::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSurfaceFilm::updateMesh(const mapPolyMesh&)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFSurfaceFilm::distribute(const mapDistributePolyMesh&)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::VoFSurfaceFilm::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -130,6 +130,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -207,4 +207,18 @@ void Foam::fv::VoFTurbulenceDamping::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFTurbulenceDamping::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::VoFTurbulenceDamping::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::VoFTurbulenceDamping::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -172,6 +172,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -202,4 +202,18 @@ void Foam::fv::VoFTurbulenceDamping::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::VoFTurbulenceDamping::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::VoFTurbulenceDamping::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::VoFTurbulenceDamping::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -171,6 +171,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -167,20 +167,6 @@ void Foam::fvModel::preUpdateMesh()
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fvModel::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fvModel::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fvModel::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void Foam::fvModel::correct()
|
||||
{}
|
||||
|
||||
|
||||
@ -328,13 +328,13 @@ public:
|
||||
virtual void preUpdateMesh();
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
virtual void updateMesh(const mapPolyMesh&) = 0;
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
virtual void distribute(const mapDistributePolyMesh&) = 0;
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
virtual bool movePoints() = 0;
|
||||
|
||||
|
||||
//- Correct the fvModel
|
||||
|
||||
@ -111,9 +111,15 @@ void Foam::fv::accelerationSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::accelerationSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::accelerationSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::accelerationSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -168,6 +168,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -169,9 +169,15 @@ void Foam::fv::actuationDiskSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::actuationDiskSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::actuationDiskSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::actuationDiskSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -198,6 +198,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -126,6 +126,20 @@ void Foam::fv::buoyancyEnergy::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::buoyancyEnergy::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::buoyancyEnergy::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::buoyancyEnergy::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::buoyancyEnergy::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -130,6 +130,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read source dictionary
|
||||
|
||||
@ -130,6 +130,20 @@ void Foam::fv::buoyancyForce::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::buoyancyForce::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::buoyancyForce::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::buoyancyForce::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::buoyancyForce::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -140,6 +140,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read source dictionary
|
||||
|
||||
@ -117,6 +117,20 @@ void Foam::fv::isotropicDamping::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::isotropicDamping::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::isotropicDamping::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::isotropicDamping::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::isotropicDamping::read(const dictionary& dict)
|
||||
{
|
||||
if (damping::read(dict))
|
||||
|
||||
@ -165,6 +165,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read dictionary
|
||||
|
||||
@ -106,4 +106,18 @@ void Foam::fv::verticalDamping::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::verticalDamping::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::verticalDamping::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::verticalDamping::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -168,6 +168,18 @@ public:
|
||||
fvMatrix<vector>& eqn,
|
||||
const word& fieldName
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -313,10 +313,19 @@ void Foam::fv::effectivenessHeatExchangerSource::addSup
|
||||
|
||||
void Foam::fv::effectivenessHeatExchangerSource::updateMesh
|
||||
(
|
||||
const mapPolyMesh& mpm
|
||||
const mapPolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::effectivenessHeatExchangerSource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -220,6 +220,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -139,9 +139,18 @@ void Foam::fv::explicitPorositySource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::explicitPorositySource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::explicitPorositySource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::explicitPorositySource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -181,6 +181,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -150,9 +150,15 @@ void Foam::fv::heatSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::heatSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::heatSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::heatSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -135,6 +135,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -159,9 +159,15 @@ void Foam::fv::heatTransfer::correct()
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::heatTransfer::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::heatTransfer::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::heatTransfer::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -178,6 +178,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -267,9 +267,15 @@ FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_RHO_SUP, fv::massSource);
|
||||
FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP, fv::massSource);
|
||||
|
||||
|
||||
void Foam::fv::massSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::massSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::massSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -210,6 +210,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -109,6 +109,20 @@ FOR_ALL_FIELD_TYPES
|
||||
);
|
||||
|
||||
|
||||
void Foam::fv::phaseLimitStabilisation::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::phaseLimitStabilisation::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::phaseLimitStabilisation::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::phaseLimitStabilisation::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -144,6 +144,18 @@ public:
|
||||
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_ALPHA_RHO_SUP);
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
//- Read dictionary
|
||||
virtual bool read(const dictionary& dict);
|
||||
|
||||
|
||||
@ -630,9 +630,15 @@ void Foam::fv::rotorDiskSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::rotorDiskSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::rotorDiskSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::rotorDiskSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -341,6 +341,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -176,6 +176,23 @@ void Foam::fv::sixDoFAccelerationSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::sixDoFAccelerationSource::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::sixDoFAccelerationSource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh&
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::sixDoFAccelerationSource::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::sixDoFAccelerationSource::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -156,6 +156,19 @@ public:
|
||||
const word& fieldName
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
//- Read dictionary
|
||||
virtual bool read(const dictionary& dict);
|
||||
|
||||
|
||||
@ -188,6 +188,23 @@ void Foam::fv::solidEquilibriumEnergySource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::solidEquilibriumEnergySource::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::solidEquilibriumEnergySource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh&
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::solidEquilibriumEnergySource::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::solidEquilibriumEnergySource::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -153,6 +153,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read dictionary
|
||||
|
||||
@ -356,9 +356,18 @@ void Foam::fv::solidificationMeltingSource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::solidificationMeltingSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::solidificationMeltingSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::solidificationMeltingSource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh& map
|
||||
)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -307,6 +307,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -318,6 +318,20 @@ FOR_ALL_FIELD_TYPES
|
||||
);
|
||||
|
||||
|
||||
void Foam::fv::volumeFractionSource::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::volumeFractionSource::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::volumeFractionSource::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::volumeFractionSource::read(const dictionary& dict)
|
||||
{
|
||||
if (fvModel::read(dict))
|
||||
|
||||
@ -230,6 +230,18 @@ public:
|
||||
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_ALPHA_RHO_SUP);
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read dictionary
|
||||
|
||||
@ -256,9 +256,15 @@ FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_RHO_SUP, fv::codedFvModel);
|
||||
FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP, fv::codedFvModel);
|
||||
|
||||
|
||||
void Foam::fv::codedFvModel::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::codedFvModel::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
redirectFvModel().updateMesh(mpm);
|
||||
redirectFvModel().updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::codedFvModel::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
redirectFvModel().distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -205,6 +205,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -234,9 +234,15 @@ FOR_ALL_FIELD_TYPES
|
||||
);
|
||||
|
||||
|
||||
void Foam::fv::semiImplicitSource::updateMesh(const mapPolyMesh& mpm)
|
||||
void Foam::fv::semiImplicitSource::updateMesh(const mapPolyMesh& map)
|
||||
{
|
||||
set_.updateMesh(mpm);
|
||||
set_.updateMesh(map);
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::semiImplicitSource::distribute(const mapDistributePolyMesh& map)
|
||||
{
|
||||
set_.distribute(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -223,6 +223,9 @@ public:
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
@ -168,6 +168,23 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::interRegionExplicitPorositySource::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::interRegionExplicitPorositySource::distribute
|
||||
(
|
||||
const mapDistributePolyMesh&
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::interRegionExplicitPorositySource::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::interRegionExplicitPorositySource::read(const dictionary& dict)
|
||||
{
|
||||
if (interRegionModel::read(dict))
|
||||
|
||||
@ -149,6 +149,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read dictionary
|
||||
|
||||
@ -212,6 +212,20 @@ void Foam::fv::interRegionHeatTransfer::correct()
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::interRegionHeatTransfer::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::interRegionHeatTransfer::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::interRegionHeatTransfer::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::interRegionHeatTransfer::read(const dictionary& dict)
|
||||
{
|
||||
if (interRegionModel::read(dict))
|
||||
|
||||
@ -182,6 +182,18 @@ public:
|
||||
virtual void correct();
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// IO
|
||||
|
||||
//- Read dictionary
|
||||
|
||||
@ -330,4 +330,20 @@ void Foam::fv::clouds::preUpdateMesh()
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::clouds::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::clouds::distribute(const mapDistributePolyMesh&)
|
||||
{
|
||||
NotImplemented;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fv::clouds::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -168,9 +168,6 @@ public:
|
||||
//- Solve the Lagrangian clouds and update the sources
|
||||
virtual void correct();
|
||||
|
||||
//- Prepare for mesh update
|
||||
virtual void preUpdateMesh();
|
||||
|
||||
|
||||
// Add explicit and implicit contributions to compressible equation
|
||||
|
||||
@ -205,6 +202,21 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Prepare for mesh update
|
||||
virtual void preUpdateMesh();
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -94,4 +94,18 @@ void Foam::fv::radiation::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::radiation::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::radiation::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::radiation::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -111,6 +111,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
@ -212,4 +212,18 @@ void Foam::fv::surfaceFilm::addSup
|
||||
}
|
||||
|
||||
|
||||
void Foam::fv::surfaceFilm::updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
void Foam::fv::surfaceFilm::distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::fv::surfaceFilm::movePoints()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -140,6 +140,18 @@ public:
|
||||
) const;
|
||||
|
||||
|
||||
// Mesh changes
|
||||
|
||||
//- Update for mesh changes
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
//- Update mesh corresponding to the given distribution map
|
||||
virtual void distribute(const mapDistributePolyMesh&);
|
||||
|
||||
//- Update for mesh motion
|
||||
virtual bool movePoints();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
|
||||
Reference in New Issue
Block a user