fvModels: Added support for mesh redistribution and load-balancing

This commit is contained in:
Henry Weller
2021-12-24 15:02:30 +00:00
parent 4267bb6c37
commit 5ed8dbb463
60 changed files with 626 additions and 58 deletions

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -143,6 +143,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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() void Foam::fv::VoFSolidificationMeltingSource::correct()
{ {
if (debug) 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) bool Foam::fv::VoFSolidificationMeltingSource::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -193,6 +193,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -130,6 +130,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -172,6 +172,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -171,6 +171,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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() void Foam::fvModel::correct()
{} {}

View File

@ -328,13 +328,13 @@ public:
virtual void preUpdateMesh(); virtual void preUpdateMesh();
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&) = 0;
//- Update mesh corresponding to the given distribution map //- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&); virtual void distribute(const mapDistributePolyMesh&) = 0;
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints() = 0;
//- Correct the fvModel //- Correct the fvModel

View File

@ -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);
} }

View File

@ -168,6 +168,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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);
} }

View File

@ -198,6 +198,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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) bool Foam::fv::buoyancyEnergy::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -130,6 +130,18 @@ public:
) const; ) 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 // IO
//- Read source dictionary //- Read source dictionary

View File

@ -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) bool Foam::fv::buoyancyForce::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -140,6 +140,18 @@ public:
) const; ) 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 // IO
//- Read source dictionary //- Read source dictionary

View File

@ -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) bool Foam::fv::isotropicDamping::read(const dictionary& dict)
{ {
if (damping::read(dict)) if (damping::read(dict))

View File

@ -165,6 +165,18 @@ public:
) const; ) 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 // IO
//- Read dictionary //- Read dictionary

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -168,6 +168,18 @@ public:
fvMatrix<vector>& eqn, fvMatrix<vector>& eqn,
const word& fieldName const word& fieldName
) const; ) 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();
}; };

View File

@ -313,10 +313,19 @@ void Foam::fv::effectivenessHeatExchangerSource::addSup
void Foam::fv::effectivenessHeatExchangerSource::updateMesh 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);
} }

View File

@ -220,6 +220,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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);
} }

View File

@ -181,6 +181,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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);
} }

View File

@ -135,6 +135,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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);
} }

View File

@ -178,6 +178,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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); 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);
} }

View File

@ -210,6 +210,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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) bool Foam::fv::phaseLimitStabilisation::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -144,6 +144,18 @@ public:
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_ALPHA_RHO_SUP); 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 //- Read dictionary
virtual bool read(const dictionary& dict); virtual bool read(const dictionary& dict);

View File

@ -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);
} }

View File

@ -341,6 +341,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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) bool Foam::fv::sixDoFAccelerationSource::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -156,6 +156,19 @@ public:
const word& fieldName const word& fieldName
) const; ) 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 //- Read dictionary
virtual bool read(const dictionary& dict); virtual bool read(const dictionary& dict);

View File

@ -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) bool Foam::fv::solidEquilibriumEnergySource::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -153,6 +153,18 @@ public:
) const; ) 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 // IO
//- Read dictionary //- Read dictionary

View File

@ -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);
} }

View File

@ -307,6 +307,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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) bool Foam::fv::volumeFractionSource::read(const dictionary& dict)
{ {
if (fvModel::read(dict)) if (fvModel::read(dict))

View File

@ -230,6 +230,18 @@ public:
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_ALPHA_RHO_SUP); 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 // IO
//- Read dictionary //- Read dictionary

View File

@ -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); 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);
} }

View File

@ -205,6 +205,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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);
} }

View File

@ -223,6 +223,9 @@ public:
//- Update for mesh changes //- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion //- Update for mesh motion
virtual bool movePoints(); virtual bool movePoints();

View File

@ -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) bool Foam::fv::interRegionExplicitPorositySource::read(const dictionary& dict)
{ {
if (interRegionModel::read(dict)) if (interRegionModel::read(dict))

View File

@ -149,6 +149,18 @@ public:
) const; ) 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 // IO
//- Read dictionary //- Read dictionary

View File

@ -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) bool Foam::fv::interRegionHeatTransfer::read(const dictionary& dict)
{ {
if (interRegionModel::read(dict)) if (interRegionModel::read(dict))

View File

@ -182,6 +182,18 @@ public:
virtual void correct(); 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 // IO
//- Read dictionary //- Read dictionary

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -168,9 +168,6 @@ public:
//- Solve the Lagrangian clouds and update the sources //- Solve the Lagrangian clouds and update the sources
virtual void correct(); virtual void correct();
//- Prepare for mesh update
virtual void preUpdateMesh();
// Add explicit and implicit contributions to compressible equation // Add explicit and implicit contributions to compressible equation
@ -205,6 +202,21 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -111,6 +111,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment

View File

@ -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;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -140,6 +140,18 @@ public:
) const; ) 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 // Member Operators
//- Disallow default bitwise assignment //- Disallow default bitwise assignment