openfoam/tutorials/combustion/XiDyMFoam/oscillatingCylinder/0/pointDisplacementy

60 lines
1.7 KiB
Plaintext

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class pointScalarField;
location "0";
object pointDisplacementy;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
walls
{
type fixedValue;
value $internalField;
}
cylinder
{
type codedFixedValue;
redirectType pointDisplacementy_cylinder;
code
#{
const scalar t = this->db().time().value();
const scalar a = 0.001;
const scalar f = 200;
operator==(a*sin(constant::mathematical::twoPi*f*t));
#};
value $internalField;
}
"inlet.*"
{
type fixedValue;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //