atmos:software:openfoam:home
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| atmos:software:openfoam:home [2024/09/21 02:25] – perdomo | atmos:software:openfoam:home [2025/05/18 21:59] (current) – perdomo | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Ran OpenFOAM Docker image on Littlestorm. Following this procedure: | * Ran OpenFOAM Docker image on Littlestorm. Following this procedure: | ||
| - | 1)Edit your ~/.bashrc file and add the line: export XAUTHORITY=$HOME/ | + | 1) Edit your ~/.bashrc file and add the line: export XAUTHORITY=$HOME/ |
| - | 2)Start with "Step 5: Launching openfoam11-linux" | + | 2) Start with "Step 5: Launching openfoam11-linux" |
| *Step 5 from link: | *Step 5 from link: | ||
| - | + | ||
| - | [mkdir -p $HOME/ | + | mkdir -p $HOME/ |
| cd $HOME/ | cd $HOME/ | ||
| - | | + | |
| - | 3)Once in the container, return to [[https:// | + | 3) Once in the container, return to [[https:// |
| + | *Step 6 from link: | ||
| + | *Testing OpenFOAM | ||
| + | |||
| + | mkdir -p $FOAM_RUN | ||
| + | cd $FOAM_RUN | ||
| + | cp -r $FOAM_TUTORIALS/ | ||
| + | cd pitzDailySteady | ||
| + | blockMesh | ||
| + | foamRun | ||
| + | paraFoam | ||
| ===Older Versions=== | ===Older Versions=== | ||
| Line 24: | Line 34: | ||
| *To install an older version go to [[https:// | *To install an older version go to [[https:// | ||
| Note: every different version will need to be installed by a system admin. | Note: every different version will need to be installed by a system admin. | ||
| + | |||
| + | ==== Procedure ==== | ||
| + | 1) Within the ' | ||
| + | |||
| + | 2) Navigate to the case directory. | ||
| + | |||
| + | 3) Run the blockMesh command, to create a simple 3-D cubic domain. | ||
| + | |||
| + | 4) Run the snappyHexMesh command, used to conform the volume mesh to the CAD model surface. | ||
| + | ==== Issues ==== | ||
| + | === Problem (2024/ | ||
| + | * OpenFOAM NASA_P3_extendedPylon_CDP_OAP_v5.obj object files does not exist so model does execute. | ||
| + | === Cause === | ||
| + | * .obj file missing from directory 0, in the NASA_extendedPylon_v2_tas120_aoa0_900T33. | ||
| + | === Solution === | ||
| + | * Locate file and place in correct directory. | ||
| + | ==== Procedure ==== | ||
| + | * After successfully running snappyHexMesh, | ||
| + | ==== Issues ==== | ||
| + | === Problem (2024/ | ||
| + | * Max skewness = 6.02536, 39 highly skew faces detected which may impair the quality of the results | ||
| + | << | ||
| + | Coupled point location match (average 0) OK. | ||
| + | |||
| + | Failed 1 mesh checks. | ||
| + | |||
| + | === Cause === | ||
| + | * maxBoundarySkewness set too high in the meshQualityDict. | ||
| + | === Solution === | ||
| + | * Go to the System directory in the case directory. Open and edit the meshQualityDict to include the lines below | ||
| + | | ||
| + | // Existing inclusion of defaults | ||
| + | #includeEtc " | ||
| + | // Overriding critical parameters | ||
| + | minFaceWeight 0.02; // Already in your file, leave as is. | ||
| + | maxNonOrtho 65; // Slightly above your max value of 64.99. | ||
| + | maxBoundarySkewness 4.5; // Reduce from default (typically 20). | ||
| + | maxInternalSkewness 4.5; // Reduce from default. | ||
| + | maxAspectRatio 10; // Reduce from current 21.34 if necessary. | ||
| + | minVol 1e-8; // Prevents extremely small cells. | ||
| + | minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | ||
| + | ==== Procedure ==== | ||
| + | 5) After updating the meshQualityDict, | ||
| + | ==== Issues ==== | ||
| + | === Problem (2024/ | ||
| + | * OpenFOAM NASA_P3_extendedPylon_CDP_OAP_v5.obj object files does not exist so model does execute. | ||
| + | === Cause === | ||
| + | * .obj file missing from directory 0, in the NASA_extendedPylon_v2_tas120_aoa0_900T33. | ||
| + | === Solution === | ||
| + | * Locate file and place in correct directory. | ||
| + | ==== Procedure ==== | ||
| + | 6) After successfully running snappyHexMesh, | ||
| + | ==== Issues ==== | ||
| + | === Problem (2024/ | ||
| + | * Max skewness = 4.49813, 42 highly skew faces detected which may impair the quality of the results | ||
| + | << | ||
| + | Coupled point location match (average 0) OK. | ||
| + | |||
| + | === Cause === | ||
| + | * maxBoundarySkewness still set too high in the meshQualityDict. | ||
| + | === Solution === | ||
| + | * Go to the System directory in the case directory. Open and edit the meshQualityDict to include the lines below | ||
| + | | ||
| + | // Existing inclusion of defaults | ||
| + | #includeEtc " | ||
| + | // Overriding critical parameters | ||
| + | minFaceWeight 0.05; // Already in your file, leave as is. | ||
| + | maxNonOrtho 65; // Slightly above your max value of 64.99. | ||
| + | maxBoundarySkewness 4.0; // Reduce from default (typically 20). | ||
| + | maxInternalSkewness 4.0; // Reduce from default. | ||
| + | maxAspectRatio 5; // Reduce from current 21.34 if necessary. | ||
| + | minVol 1e-8; // Prevents extremely small cells. | ||
| + | minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | ||
| + | ==== Procedure ==== | ||
| + | 7) Run checkMesh. | ||
| + | |||
| + | 8) Update the 0 directory to match the new mesh size and to set the desired boundary conditions. | ||
| + | 9) Use decomposePar to run breakup the simulation into multiple cores. | ||
| + | 10) Run the rhoSimpleFoam solver. | ||
atmos/software/openfoam/home.1726885531.txt.gz · Last modified: 2024/09/21 02:25 by perdomo