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 [2025/05/18 21:57] – [Procedure] perdomo | atmos:software:openfoam:home [2026/04/17 18:02] (current) – [Switching to OpenFOAM2506 from www.openfoam.com] perdomo | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| ==== Procedure ==== | ==== Procedure ==== | ||
| - | ** Within the ' | + | 1) Within the ' |
| - | ** Navigate to the case directory. | + | |
| - | ** Run the blockMesh command, to create a simple 3-D cubic domain. | + | |
| - | ** Run the snappyHexMesh command, used to conform the volume mesh to the CAD model surface. | + | |
| + | | ||
| + | |||
| + | | ||
| ==== Issues ==== | ==== Issues ==== | ||
| === Problem (2024/ | === Problem (2024/ | ||
| Line 73: | Line 76: | ||
| minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | ||
| ==== Procedure ==== | ==== Procedure ==== | ||
| - | * After updating the meshQualityDict, | + | 5) After updating the meshQualityDict, |
| ==== Issues ==== | ==== Issues ==== | ||
| === Problem (2024/ | === Problem (2024/ | ||
| Line 82: | Line 85: | ||
| * Locate file and place in correct directory. | * Locate file and place in correct directory. | ||
| ==== Procedure ==== | ==== Procedure ==== | ||
| - | * After successfully running snappyHexMesh, | + | 6) After successfully running snappyHexMesh, |
| ==== Issues ==== | ==== Issues ==== | ||
| === Problem (2024/ | === Problem (2024/ | ||
| Line 105: | Line 108: | ||
| minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | minTetQuality 1e-6; // Ensures tetrahedral elements are valid. | ||
| ==== Procedure ==== | ==== Procedure ==== | ||
| - | * Run checkMesh. | + | |
| - | * Update the 0 directory to match the new mesh size and to set the desired boundary conditions. | + | |
| - | * Use decomposePar to run breakup the simulation into multiple cores. | + | |
| - | * Run the rhoSimpleFoam solver. | + | |
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | ==== Switching to openfoam2506 from www.openfoam.com ==== | ||
| + | |||
| + | As recommended by an OpenFOAM expert, a switch from openfoam11-linux (from openfoam.org) to openfoam2506 (from openfoam.com) was made, since the latter keeps syntax virtually the same between version thus allowing the use of old cases with minimal modification to the configuration files compared to the openfoam.org version. | ||
| + | |||
| + | === Installation === | ||
| + | Installation will need to be executed by an admin with sudo privileges. | ||
| + | |||
| + | yum -y install dnf-plugins-core | ||
| + | sudo dnf install scotch scotch-devel metis metis-devel | ||
| + | dnf -y copr enable openfoam/ | ||
| + | sudo yum install openfoam2406-default | ||
| + | sudo yum install openfoam2506-default | ||
| + | # binaries will be installed in / | ||
| + | # >> Tutorials in / | ||
| + | sudo chmod -R 777 / | ||
| + | sudo chmod -R 777 / | ||
| + | # in your ~/.bashrc we just add | ||
| + | alias of24=' | ||
| + | alias of25=' | ||
| + | |||
| + | === Calling the docker image === | ||
| + | Navigate to the case directory and type the command: | ||
| + | openfoam2506 | ||
| + | |||
| + | OpemFOAM will load and will be ready to execute commands to run the simulation. | ||
| + | |||
| + | |||
| + | === Running NASA_extendedPylon_v2_tas120_aoa0_900T33 case === | ||
| + | |||
atmos/software/openfoam/home.1747605439.txt.gz · Last modified: 2025/05/18 21:57 by perdomo