Skip to content
Snippets Groups Projects
Commit c3445204 authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Andrew Heather
Browse files

TUT: updated/cleaned the optimisation tutorials

- Removed some unnecessary dynamicMeshDicts.
- Removed the writeActiveDesignVariables execution from the Allrun
  scripts, since it is no longer necessary to execute it before
  adjointOptimisationFoam.
- Updated the entries in dynamicMeshDict according to efbc9fc9.
parent 1404b5ff
1 merge request!368Updates for the adjoint optimisation library
Showing
with 79 additions and 232 deletions
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solver volumetricBSplinesMotionSolver;
volumetricBSplinesMotionSolverCoeffs
{
controlBoxes (duct);
duct
{
name duct;
type cartesian;
nCPsU 9;
nCPsV 5;
nCPsW 3;
degreeU 3;
degreeV 3;
degreeW 2;
controlPointsDefinition axisAligned;
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solver volumetricBSplinesMotionSolver;
volumetricBSplinesMotionSolverCoeffs
{
controlBoxes (duct);
duct
{
name duct;
type cartesian;
nCPsU 9;
nCPsV 5;
nCPsW 3;
degreeU 3;
degreeV 3;
degreeW 2;
controlPointsDefinition axisAligned;
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solver volumetricBSplinesMotionSolver;
volumetricBSplinesMotionSolverCoeffs
{
controlBoxes (duct);
duct
{
name duct;
type cartesian;
nCPsU 9;
nCPsV 5;
nCPsW 3;
degreeU 3;
degreeV 3;
degreeW 2;
controlPointsDefinition axisAligned;
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
}
}
// ************************************************************************* //
......@@ -39,7 +39,6 @@ runParallel $decompDict patchSummary
runParallel $decompDict potentialFoam
runParallel $decompDict checkMesh -writeFields '(nonOrthoAngle)' -constant
runParallel $decompDict writeActiveDesignVariables
runParallel $decompDict $(getApplication)
runParallel $decompDict cumulativeDisplacement
......
......@@ -30,17 +30,17 @@ volumetricBSplinesMotionSolverCoeffs
controlPointsDefinition fromFile;
confineX1movement false;
confineX2movement false;
confineX3movement false;
confineUMovement false;
confineVMovement false;
confineWMovement false;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) );
boundVMinCPs ( (true true true) (true true true) );
boundVMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) );
confineVMinCPs ( (true true true) (true true true) );
confineVMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) (true true true) );
}
}
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds ( 0.1 -0.25 -0.1);
upperCpBounds ( 0.9 0.25 1.1);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints true;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundVMinCPs ( (true true true) );
boundVMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineVMinCPs ( (true true true) );
confineVMaxCPs ( (true true true) );
}
}
......
......@@ -7,7 +7,6 @@ resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
\cp -r $resourcesDir/meshes/sbend/polyMesh constant
runApplication decomposePar
runParallel writeActiveDesignVariables
runParallel $(getApplication)
runParallel cumulativeDisplacement
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -7,7 +7,6 @@ resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
\cp -r $resourcesDir/meshes/sbend/polyMesh constant
runApplication decomposePar
runParallel writeActiveDesignVariables
runParallel $(getApplication)
runParallel cumulativeDisplacement
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -7,7 +7,6 @@ resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
\cp -r $resourcesDir/meshes/sbend/polyMesh constant
runApplication decomposePar
runParallel writeActiveDesignVariables
runParallel $(getApplication)
runParallel cumulativeDisplacement
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -7,7 +7,6 @@ resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
\cp -r $resourcesDir/meshes/sbend/polyMesh constant
runApplication decomposePar
runParallel writeActiveDesignVariables
runParallel $(getApplication)
runParallel cumulativeDisplacement
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -7,7 +7,6 @@ resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
\cp -r $resourcesDir/meshes/sbend/polyMesh constant
runApplication decomposePar
runParallel writeActiveDesignVariables
runParallel $(getApplication)
runParallel cumulativeDisplacement
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
......@@ -32,15 +32,15 @@ volumetricBSplinesMotionSolverCoeffs
lowerCpBounds (-1.1 -0.21 -0.05);
upperCpBounds ( 1.1 0.39 0.15);
confineX1movement false;
confineX2movement false;
confineX3movement true;
confineUMovement false;
confineVMovement false;
confineWMovement true;
confineBoundaryControlPoints false;
boundUMinCPs ( (true true true) (true true true) );
boundUMaxCPs ( (true true true) (true true true) );
boundWMinCPs ( (true true true) );
boundWMaxCPs ( (true true true) );
confineUMinCPs ( (true true true) (true true true) );
confineUMaxCPs ( (true true true) (true true true) );
confineWMinCPs ( (true true true) );
confineWMaxCPs ( (true true true) );
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment