Skip to content
Snippets Groups Projects
Commit bc03c94f authored by sergio's avatar sergio
Browse files

ENh: Adding clone member to sixDoFSolvers

parent d5a9fea3
No related branches found
No related tags found
No related merge requests found
...@@ -269,6 +269,8 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::write(Ostream& os) const ...@@ -269,6 +269,8 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::write(Ostream& os) const
motion_.write(os); motion_.write(os);
//motion_.solver().write(os);
initialPoints_.writeEntry("initialPoints", os); initialPoints_.writeEntry("initialPoints", os);
writeEntry("value", os); writeEntry("value", os);
......
...@@ -90,5 +90,4 @@ void Foam::sixDoFSolvers::CrankNicolson::solve ...@@ -90,5 +90,4 @@ void Foam::sixDoFSolvers::CrankNicolson::solve
Q() = Qpi.first(); Q() = Qpi.first();
} }
// ************************************************************************* // // ************************************************************************* //
...@@ -111,5 +111,4 @@ void Foam::sixDoFSolvers::Newmark::solve ...@@ -111,5 +111,4 @@ void Foam::sixDoFSolvers::Newmark::solve
Q() = Qpi.first(); Q() = Qpi.first();
} }
// ************************************************************************* // // ************************************************************************* //
...@@ -96,7 +96,7 @@ public: ...@@ -96,7 +96,7 @@ public:
sixDoFRigidBodyMotion& body sixDoFRigidBodyMotion& body
); );
//- Construct and return a clone //- Construct and return a clone
virtual autoPtr<sixDoFSolver> clone() const virtual autoPtr<sixDoFSolver> clone() const
{ {
return autoPtr<sixDoFSolver> return autoPtr<sixDoFSolver>
......
...@@ -24,6 +24,7 @@ License ...@@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "sixDoFSolver.H" #include "sixDoFSolver.H"
#include "IOstreams.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...@@ -47,6 +48,11 @@ Foam::sixDoFSolver::sixDoFSolver ...@@ -47,6 +48,11 @@ Foam::sixDoFSolver::sixDoFSolver
{} {}
void Foam::sixDoFSolver::write(Ostream& os) const
{
os << dict_;
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::sixDoFSolver::~sixDoFSolver() Foam::sixDoFSolver::~sixDoFSolver()
......
...@@ -181,6 +181,10 @@ public: ...@@ -181,6 +181,10 @@ public:
scalar deltaT, scalar deltaT,
scalar deltaT0 scalar deltaT0
) = 0; ) = 0;
//- Write
void write(Ostream&) const;
}; };
......
...@@ -98,5 +98,4 @@ void Foam::sixDoFSolvers::symplectic::solve ...@@ -98,5 +98,4 @@ void Foam::sixDoFSolvers::symplectic::solve
pi() += rConstraints() & aDamp()*0.5*deltaT*tau(); pi() += rConstraints() & aDamp()*0.5*deltaT*tau();
} }
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment