User Tools

Site Tools


atmos:software:openfoam:home

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
atmos:software:openfoam:home [2025/05/18 21:57] – [Procedure] perdomoatmos: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 'run' directory start openFOAM: openfoam11-linux -p 510 -xhost + 1) Within the 'run' directory start openFOAM: openfoam11-linux -p 510 -xhost 
- ** Navigate to the case directory. + 
- ** Run the blockMesh command, to create a simple 3-D cubic domain. + 2) Navigate to the case directory. 
- ** Run the snappyHexMesh command, used to conform the volume mesh to the CAD model surface.+ 
 + 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 ==== ==== Issues ====
 === Problem (2024/09/24) === === Problem (2024/09/24) ===
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, run checkMesh command again+ 5) After updating the meshQualityDict, run checkMesh command again
 ==== Issues ==== ==== Issues ====
 === Problem (2024/09/24) === === Problem (2024/09/24) ===
Line 82: Line 85:
  * Locate file and place in correct directory.   * Locate file and place in correct directory. 
 ==== Procedure ==== ==== Procedure ====
- After successfully running snappyHexMesh, run checkMesh.+ 6) After successfully running snappyHexMesh, run checkMesh.
 ==== Issues ==== ==== Issues ====
 === Problem (2024/09/24) === === Problem (2024/09/24) ===
Line 105: Line 108:
 minTetQuality 1e-6; // Ensures tetrahedral elements are valid. minTetQuality 1e-6; // Ensures tetrahedral elements are valid.
 ==== Procedure ==== ==== Procedure ====
-Run checkMesh. + 7) 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. + 8) Update the 0 directory to match the new mesh size and to set the desired boundary conditions. 
-Run the rhoSimpleFoam solver. + 
 + 9) Use decomposePar to run breakup the simulation into multiple cores. 
 + 
 + 10) 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/openfoam 
 +sudo yum install openfoam2406-default 
 +sudo yum install openfoam2506-default 
 +# binaries will be installed in /usr/bin/openfoam2406 and in  /usr/bin/openfoam2506 
 +# >> Tutorials in /usr/lib/openfoam/openfoam2406/tutorials/ 
 +sudo chmod -R 777 /usr/lib/openfoam/openfoam2406/ 
 +sudo chmod -R 777 /usr/lib/openfoam/openfoam2506/ 
 +# in your ~/.bashrc we just add  
 +alias of24='. /usr/lib/openfoam/openfoam2406/etc/bashrc' 
 +alias of25='. /usr/lib/openfoam/openfoam2506/etc/bashrc' 
 + 
 +=== 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