CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   User defined dynamic mesh (https://www.cfd-online.com/Forums/openfoam/218780-user-defined-dynamic-mesh.html)

czb58 July 3, 2019 18:34

User defined dynamic mesh
 
Hi all,

Recently I am doing the dynamic mesh cases. I am trying to follow the case movingCone to setup the moving part.

/opt/openfoam6/tutorials/compressible/sonicDyMFoam/movingCone
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ file: dynamicMeshDict
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolvers.so");
motionSolver velocityComponentLaplacian;
component x;
diffusivity directional (1 200 0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ file: pointMotionUx
FoamFile
{
version 2.0;
format ascii;
class pointScalarField;
object pointMotionU;
}
boundaryField
{
movingWall
{
type uniformFixedValue;
uniformValue constant 160;
}

...
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

In the file pointMotionUx, it shows the type for the movingWall is 'uniformFixedValue'. Can anyone show me how to select the type if I want to define the moving path using a function or reading the velocity profile from a file?

Thanks,
Chao




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
The following shows the type for the moving wall.

Valid patchField types are :

22
(
calculated
codedFixedValue
cyclic
cyclicACMI
cyclicAMI
cyclicRepeatAMI
cyclicSlip
empty
fixedNormalSlip
fixedValue
nonuniformTransformCyclic
processor
processorCyclic
slip
symmetry
symmetryPlane
timeVaryingMappedFixedValue
timeVaryingUniformFixedValue
uniformFixedValue
value
wedge
zeroGradient
)


All times are GMT -4. The time now is 16:23.