mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Demonstrates meshing a cylinder with hemispehrical ends using snappyHexMesh with a polar background mesh that uses the point and edge projection feature of blockMesh. The case prescribes a multiMotion on the cylinder, combining an oscillatingLinearMotion and transverse rotatingMotion.
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object dynamicMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dynamicFvMesh dynamicMotionSolverFvMesh;
|
|
|
|
solver solidBody;
|
|
|
|
solidBodyCoeffs
|
|
{
|
|
solidBodyMotionFunction multiMotion;
|
|
|
|
multiMotionCoeffs
|
|
{
|
|
oscillation
|
|
{
|
|
solidBodyMotionFunction oscillatingLinearMotion;
|
|
oscillatingLinearMotionCoeffs
|
|
{
|
|
amplitude (0.1 0 0);
|
|
omega 18.8945578;
|
|
}
|
|
}
|
|
|
|
rotation
|
|
{
|
|
solidBodyMotionFunction rotatingMotion;
|
|
rotatingMotionCoeffs
|
|
{
|
|
origin (0 0.02 0);
|
|
axis (0 0 1);
|
|
omega 18.8945578;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|