This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/mesh/moveDynamicMesh/circCylinder3dHex/constant/dynamicMeshDict
2018-06-01 18:11:37 +02:00

119 lines
3.3 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh dynamicMotionSolverFvMesh;
solver mesquiteMotionSolver;
mesquiteOptions
{
standardCellTypes yes;
// Optimization metric
// optMetric AspectRatioGamma;
optMetric
{
// firstMetric EdgeLength;
firstMetric MeanRatio;
// secondMetric MeanRatio;
secondMetric AspectRatioGamma;
}
// Objective function
objFunction CompositeOFAdd;
// Optimization algorithm
optAlgorithm FeasibleNewton;
// optAlgorithm ConjugateGradient;
// Termination criteria sub-dictionary
// (takes default values if not specified)
// Specifying an empty sub-dictionary terminates with available options
tcInner
{
//relGradL2 1e-2;
//cpuTime 0.5;
iterationLimit 5;
}
// tcOuter
// {}
sliverThreshold 0.05;
// For composite functions, two objectives need to be specified
firstFunction LInf;
secondFunction LPtoP;
// For scaled functions, scale and objective needs to be specified
// scaleFunction PMeanP;
// scale 1.5;
// Power value for the LPtoP objective function
pValue 20;
power 2;
// Specify a tolerance for the CG solver
tolerance 1e-2;
// Specify number of CG sweeps
nSweeps 1;
// Specify a relaxation factor, if necessary
//relaxationFactor 0.1;
// Specify slip patches for the motionSolver
slipPatches
{
sideWall;
topWall;
bottomWall;
}
cylindricalConstraints
{
// Specify options per slip patch
sideWall
{
axisPoint (0.0 0.0 0.0);
axisVector (0.0 0.0 1.0);
radius 1.0;
}
}
// Specify fixedValue patches for the motionSolver
fixedValuePatches
{
topWall
{
//type angularOscillatingDisplacement;
//amplitude -0.0125;
type oscillatingDisplacement;
amplitude (0 0 0.01);
axis (1 0 0);
origin (0 0 3);
angle0 0.0;
omega 0.15;
value uniform (0 0 0);
}
}
// Specify interval for surface smoothing
surfInterval 1;
}
// ************************************************************************* //