diff --git a/openfoam2012/freeCylinderFlow/parameters b/openfoam2012/freeCylinderFlow/parameters index 72ae2228bbe1311753c3b3577f31619d224152ea..7cae1d889abda95cadf6897caac6cd1ca6daa91f 100644 --- a/openfoam2012/freeCylinderFlow/parameters +++ b/openfoam2012/freeCylinderFlow/parameters @@ -3,3 +3,5 @@ inVelocity 10; Tinf 300; Tw 310; Pr_t 1; +thickness 1; +radius 1; diff --git a/openfoam2012/freeCylinderFlow/system/blockMeshDict b/openfoam2012/freeCylinderFlow/system/blockMeshDict index b1e3ecbb453a111b55895eb739dcf03dce65427a..1c0059c5f07161548cdcbdeab53357c6a3346c9a 100644 --- a/openfoam2012/freeCylinderFlow/system/blockMeshDict +++ b/openfoam2012/freeCylinderFlow/system/blockMeshDict @@ -16,7 +16,7 @@ FoamFile #include "../parameters"; -r 1; +r $radius; // radius of cylinder Ltod 20; @@ -28,7 +28,7 @@ sqrTod 3; arccenterDistortion #eval{3*$r}; // how much off the cylinder center the center of the arcs in the square sides is -thick -10; +thick #eval{-$thickness}; Lhalf #eval{$Ltod*$r}; L #eval{$Lhalf * 2}; diff --git a/openfoam2012/freeCylinderFlow/system/forceCoeffsIncompressible b/openfoam2012/freeCylinderFlow/system/forceCoeffsIncompressible index 9c337ce291787d89fc0a5a5a00cbc9bdd3b31089..f28676410059dc98768613bde08b645da6640bcb 100644 --- a/openfoam2012/freeCylinderFlow/system/forceCoeffsIncompressible +++ b/openfoam2012/freeCylinderFlow/system/forceCoeffsIncompressible @@ -12,11 +12,12 @@ Description \*---------------------------------------------------------------------------*/ +#include "../parameters"; patches (cylinder); magUInf 0.2; lRef 1; -Aref 0.1; +Aref #eval{$thickness * $radius * 2}; // diameter of cylinder * length(=thickness) liftDir (0 1 0); dragDir (1 0 0);