mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Changing radiation correct in YEEq.H in fireFoam.
Adding clone member functions to motion solvers
This commit is contained in:
@ -53,6 +53,8 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
||||
Y[inertIndex] = scalar(1) - Yt;
|
||||
Y[inertIndex].max(0.0);
|
||||
|
||||
radiation->correct();
|
||||
|
||||
volScalarField& he = thermo.he();
|
||||
|
||||
fvScalarMatrix EEqn
|
||||
|
||||
@ -170,7 +170,8 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion
|
||||
momentOfInertia_(sDoFRBM.momentOfInertia_),
|
||||
aRelax_(sDoFRBM.aRelax_),
|
||||
aDamp_(sDoFRBM.aDamp_),
|
||||
report_(sDoFRBM.report_)
|
||||
report_(sDoFRBM.report_),
|
||||
solver_(sDoFRBM.solver_, false)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ Foam::sixDoFSolvers::CrankNicolson::CrankNicolson
|
||||
sixDoFRigidBodyMotion& body
|
||||
)
|
||||
:
|
||||
sixDoFSolver(body),
|
||||
sixDoFSolver(dict, body),
|
||||
aoc_(dict.lookupOrDefault<scalar>("aoc", 0.5)),
|
||||
voc_(dict.lookupOrDefault<scalar>("voc", 0.5))
|
||||
{}
|
||||
|
||||
@ -98,6 +98,15 @@ public:
|
||||
sixDoFRigidBodyMotion& body
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<sixDoFSolver> clone() const
|
||||
{
|
||||
return autoPtr<sixDoFSolver>
|
||||
(
|
||||
new CrankNicolson(dict_, body_)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~CrankNicolson();
|
||||
|
||||
@ -46,7 +46,7 @@ Foam::sixDoFSolvers::Newmark::Newmark
|
||||
sixDoFRigidBodyMotion& body
|
||||
)
|
||||
:
|
||||
sixDoFSolver(body),
|
||||
sixDoFSolver(dict, body),
|
||||
gamma_(dict.lookupOrDefault<scalar>("gamma", 0.5)),
|
||||
beta_
|
||||
(
|
||||
|
||||
@ -96,6 +96,15 @@ public:
|
||||
sixDoFRigidBodyMotion& body
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<sixDoFSolver> clone() const
|
||||
{
|
||||
return autoPtr<sixDoFSolver>
|
||||
(
|
||||
new Newmark(dict_, body_)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~Newmark();
|
||||
|
||||
@ -36,9 +36,14 @@ namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::sixDoFSolver::sixDoFSolver(sixDoFRigidBodyMotion& body)
|
||||
Foam::sixDoFSolver::sixDoFSolver
|
||||
(
|
||||
const dictionary& dict,
|
||||
sixDoFRigidBodyMotion& body
|
||||
)
|
||||
:
|
||||
body_(body)
|
||||
body_(body),
|
||||
dict_(dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -59,6 +59,9 @@ protected:
|
||||
//- The rigid body
|
||||
sixDoFRigidBodyMotion& body_;
|
||||
|
||||
//- Model dictionary
|
||||
dictionary dict_;
|
||||
|
||||
|
||||
// Protected member functions
|
||||
|
||||
@ -148,7 +151,10 @@ public:
|
||||
// Constructors
|
||||
|
||||
// Construct for given body
|
||||
sixDoFSolver(sixDoFRigidBodyMotion& body);
|
||||
sixDoFSolver(const dictionary& dict, sixDoFRigidBodyMotion& body);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<sixDoFSolver> clone() const = 0;
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
||||
@ -46,7 +46,7 @@ Foam::sixDoFSolvers::symplectic::symplectic
|
||||
sixDoFRigidBodyMotion& body
|
||||
)
|
||||
:
|
||||
sixDoFSolver(body)
|
||||
sixDoFSolver(dict, body)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -95,6 +95,15 @@ public:
|
||||
sixDoFRigidBodyMotion& body
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<sixDoFSolver> clone() const
|
||||
{
|
||||
return autoPtr<sixDoFSolver>
|
||||
(
|
||||
new symplectic(dict_, body_)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~symplectic();
|
||||
|
||||
Reference in New Issue
Block a user