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

122 lines
3.5 KiB
Text
Raw Normal View History

2011-05-03 19:01:24 +00:00
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
2013-12-11 16:09:41 +00:00
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.0 |
| \\ / A nd | Web: http://www.extend-project.de |
2011-05-03 19:01:24 +00:00
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Select the type of dynamicFvMesh, and load custom library
dynamicFvMesh dynamicMotionSolverFvMesh;
solver mesquiteMotionSolver;
2013-08-14 14:29:24 +00:00
//solver laplace;
2011-05-03 19:01:24 +00:00
//diffusivity uniform 1.0;
//diffusivity quadratic;
//distancePatches (topWall);
//frozenDiffusion off;
mesquiteOptions
{
// 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;
}
// ************************************************************************* //