38 lines
1.7 KiB
C++
38 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 3.1 |
|
|
| \\ / A nd | Web: http://www.extend-project.de |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object massOnSpringWithDamper;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
mass m [1 0 0 0 0 0 0] 1;
|
|
momentOfInertia J [1 2 0 0 0 0 0] (1 1 1);
|
|
|
|
equilibriumPosition Xeq [0 1 0 0 0 0 0] (2 0 0);
|
|
linearSpring k [1 0 -2 0 0 0 0] (1 0 0);
|
|
linearDamping d [1 0 -1 0 0 0 0] (1 0 0);
|
|
|
|
// Xabs = Xeq + Xrel
|
|
Xrel Xrel [0 1 0 0 0 0 0] (-2 0 0);
|
|
U U [0 1 -1 0 0 0 0] (0 0 0);
|
|
Uold Uold [0 1 -1 0 0 0 0] (0 0 0);
|
|
rotationVector (0 0 1);
|
|
rotationAngle rotA [0 0 0 0 0 0 0] 0;
|
|
omega rotU [0 0 -1 0 0 0 0] (0 0 0);
|
|
|
|
force f [1 1 -2 0 0 0 0] (0 0 0);
|
|
moment m [1 2 -2 0 0 0 0] (0 0 0);
|
|
|
|
forceRelative fRel [1 1 -2 0 0 0 0] (0 0 0);
|
|
momentRelative mRel [1 2 -2 0 0 0 0] (0 0 0);
|
|
|
|
// ************************************************************************* //
|