Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
d6b402e6
Commit
d6b402e6
authored
3 years ago
by
LocNgu
Browse files
Options
Downloads
Patches
Plain Diff
review cfd.md
check links, syntax, formatting
parent
e0f25ac1
No related branches found
No related tags found
3 merge requests
!322
Merge preview into main
,
!319
Merge preview into main
,
!248
review cfd.md
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/cfd.md
+28
-29
28 additions, 29 deletions
doc.zih.tu-dresden.de/docs/software/cfd.md
with
28 additions
and
29 deletions
doc.zih.tu-dresden.de/docs/software/cfd.md
+
28
−
29
View file @
d6b402e6
# Computational Fluid Dynamics (CFD)
# Computational Fluid Dynamics (CFD)
| | | | |
| |
**Taurus**
|
**Module**
|
|---------------|------------|-----------|------------|
|---------------|------------|------------|
| |
**Taurus**
|
**Venus**
|
**Module**
|
|
**OpenFOAM**
| x | openfoam |
|
**OpenFOAM**
| x | | openfoam |
|
**CFX**
| x | ansys |
|
**CFX**
| x | x | ansys |
|
**Fluent**
| x | ansys |
|
**Fluent**
| x | x | ansys |
|
**ICEM CFD**
| x | ansys |
|
**ICEM CFD**
| x | x | ansys |
|
**STAR-CCM+**
| x | star |
|
**STAR-CCM+**
| x | | star |
## OpenFOAM
## OpenFOAM
The OpenFOAM (Open Field Operation and Manipulation) CFD Toolbox can simulate anything from complex
The OpenFOAM (Open Field Operation and Manipulation) CFD Toolbox can simulate anything from
a
complex
fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics,
fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics,
electromagnetics and the pricing of financial options. OpenFOAM is develop primarly by
electromagnetics and the pricing of financial options. OpenFOAM is develop
ed
primar
i
ly by
[
OpenCFD Ltd
](
https://www.openfoam.com
)
and is freely available and open
source,
[
OpenCFD Ltd
](
https://www.openfoam.com
)
and is freely available and open
-
source,
licensed under the GNU General Public Licence.
licensed under the GNU General Public Licence.
The command
"
module spider OpenFOAM
"
provides the list of installed OpenFOAM versions. In order to
The command
`
module spider OpenFOAM
`
provides the list of installed OpenFOAM versions. In order to
use OpenFOAM, it is mandatory to set the environment by sourcing the
\`
bashrc
\`
(for users running
use OpenFOAM, it is mandatory to set the environment by sourcing the
\`
bashrc
\`
(for users running
bash or ksh) or
\`
cshrc
\`
`
(for users running tcsh
`
or
`
csh)
`
provided by OpenFOAM:
bash or ksh) or
\`
cshrc
\`
(for users running tcsh or csh) provided by OpenFOAM:
```
Shell Session
```
console
module load OpenFOAM/VERSION
marie@login$
module load OpenFOAM/VERSION
source $FOAM_BASH
marie@login$
source
$FOAM_BASH
# source $FOAM_CSH
marie@login$
# source $FOAM_CSH
```
```
Example for OpenFOAM job script:
Example for OpenFOAM job script:
```
B
ash
```
b
ash
#!/bin/bash
#!/bin/bash
#SBATCH --time=12:00:00 # walltime
#SBATCH --time=12:00:00 # walltime
#SBATCH --ntasks=60 # number of processor cores (i.e. tasks)
#SBATCH --ntasks=60 # number of processor cores (i.e. tasks)
...
@@ -47,13 +46,13 @@ srun pimpleFoam -parallel > "$OUTFILE"
...
@@ -47,13 +46,13 @@ srun pimpleFoam -parallel > "$OUTFILE"
## Ansys CFX
## Ansys CFX
Ansys CFX is a powerful finite-volume-based program package for modeling general fluid flow in
Ansys CFX is a powerful finite-volume-based program package for model
l
ing general fluid flow in
complex geometries. The main components of the CFX package are the flow solver cfx5solve, the
complex geometries. The main components of the CFX package are the flow solver cfx5solve, the
geometry and mesh generator cfx5pre, and the post-processor cfx5post.
geometry and mesh generator cfx5pre, and the post-processor cfx5post.
Example for CFX job script:
Example for CFX job script:
```
B
ash
```
b
ash
#!/bin/bash
#!/bin/bash
#SBATCH --time=12:00 # walltime
#SBATCH --time=12:00 # walltime
#SBATCH --ntasks=4 # number of processor cores (i.e. tasks)
#SBATCH --ntasks=4 # number of processor cores (i.e. tasks)
...
@@ -70,7 +69,7 @@ cfx-parallel.sh -double -def StaticMixer.def
...
@@ -70,7 +69,7 @@ cfx-parallel.sh -double -def StaticMixer.def
Fluent need the hostnames and can be run in parallel like this:
Fluent need the hostnames and can be run in parallel like this:
```
B
ash
```
b
ash
#!/bin/bash
#!/bin/bash
#SBATCH --time=12:00 # walltime
#SBATCH --time=12:00 # walltime
#SBATCH --ntasks=4 # number of processor cores (i.e. tasks)
#SBATCH --ntasks=4 # number of processor cores (i.e. tasks)
...
@@ -84,23 +83,23 @@ nodeset -e $SLURM_JOB_NODELIST | xargs -n1 > hostsfile_job_$SLURM_JOBID.txt
...
@@ -84,23 +83,23 @@ nodeset -e $SLURM_JOB_NODELIST | xargs -n1 > hostsfile_job_$SLURM_JOBID.txt
fluent 2ddp
-t
$SLURM_NTASKS
-g
-mpi
=
intel
-pinfiniband
-cnf
=
hostsfile_job_
$SLURM_JOBID
.txt < input.in
fluent 2ddp
-t
$SLURM_NTASKS
-g
-mpi
=
intel
-pinfiniband
-cnf
=
hostsfile_job_
$SLURM_JOBID
.txt < input.in
```
```
To use fluent interactive please try
To use fluent interactive
,
please try
:
```
Shell Session
```
console
module load ANSYS/19.2
marie@login$
module load ANSYS/19.2
srun -N 1 --cpus-per-task=4 --time=1:00:00 --pty --x11=first bash
marie@login$
srun
-N
1
--cpus-per-task
=
4
--time
=
1:00:00
--pty
--x11
=
first bash
fluent &
marie@login$
fluent &
```
```
## STAR-CCM+
## STAR-CCM+
Note: you have to use your own license in order to run STAR-CCM+ on Taurus, so you have to specify
Note: you have to use your own license in order to run STAR-CCM+ on Taurus, so you have to specify
the parameters -licpath and -podkey, see the example below.
the parameters
`
-licpath
`
and
`
-podkey
`
, see the example below.
Our installation provides a script
`create_rankfile -f CCM`
that generates a hostlist from the SLURM
Our installation provides a script
`create_rankfile -f CCM`
that generates a hostlist from the SLURM
job environment that can be passed to starccm+ enabling it to run across multiple nodes.
job environment that can be passed to starccm+
,
enabling it to run across multiple nodes.
```
B
ash
```
b
ash
#!/bin/bash
#!/bin/bash
#SBATCH --time=12:00 # walltime
#SBATCH --time=12:00 # walltime
#SBATCH --ntasks=32 # number of processor cores (i.e. tasks)
#SBATCH --ntasks=32 # number of processor cores (i.e. tasks)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment