119 lines
3.3 KiB
C++
119 lines
3.3 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 4.0 |
|
|
| \\ / 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;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|