mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
1) Add softWall rigidBody restrain 2) Add linearSpringDamper sixDoF restrain to work as soft rope 3) dynamicMotionSolverListFvMesh changed to dictionary based input 4) Add Time reference access to sixDof restraints 5) Add drivenLinearMotion to solidBodyMotionFunctions.
108 lines
3.0 KiB
C++
108 lines
3.0 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd |
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
| Copyright (C) 2016 OpenFOAM Foundation
|
|
-------------------------------------------------------------------------------
|
|
License
|
|
This file is part of OpenFOAM.
|
|
|
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
Class
|
|
Foam::dynamicMotionSolverListFvMesh
|
|
|
|
Description
|
|
Dynamic mesh able to handle multiple motion solvers.
|
|
NOTE: If the word entry "solvers" is not found it falls back to a single
|
|
motion solver behavior.
|
|
|
|
SourceFiles
|
|
dynamicMotionSolverListFvMesh.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef dynamicMotionSolverListFvMesh_H
|
|
#define dynamicMotionSolverListFvMesh_H
|
|
|
|
#include "dynamicFvMesh.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
class motionSolver;
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class dynamicMotionSolverListFvMesh Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class dynamicMotionSolverListFvMesh
|
|
:
|
|
public dynamicFvMesh
|
|
{
|
|
// Private data
|
|
|
|
PtrList<motionSolver> motionSolvers_;
|
|
|
|
|
|
// Private Member Functions
|
|
|
|
//- No copy construct
|
|
dynamicMotionSolverListFvMesh
|
|
(
|
|
const dynamicMotionSolverListFvMesh&
|
|
) = delete;
|
|
|
|
//- No copy assignment
|
|
void operator=(const dynamicMotionSolverListFvMesh&) = delete;
|
|
|
|
|
|
public:
|
|
|
|
//- Runtime type information
|
|
TypeName("dynamicMotionSolverListFvMesh");
|
|
|
|
|
|
// Constructors
|
|
|
|
//- Construct from IOobject
|
|
dynamicMotionSolverListFvMesh(const IOobject& io);
|
|
|
|
|
|
//- Destructor
|
|
~dynamicMotionSolverListFvMesh();
|
|
|
|
|
|
// Member Functions
|
|
|
|
//- Dummy update function which does not change the mesh
|
|
virtual bool update();
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|