-
Notifications
You must be signed in to change notification settings - Fork 8
Lsdyna update #1240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Lsdyna update #1240
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5ea0c64
some small tidyup
nesi-mkdocs-bot 1571ebe
mem2
nesi-mkdocs-bot 6d02008
boo ansys dyna syckkkkkkkks
nesi-mkdocs-bot 2866f9d
f
nesi-mkdocs-bot befa1a0
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley 989e665
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley bd188b9
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley 9c3fb24
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley e9209ef
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley 102f4eb
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley 89aea16
Update docs/Software/Available_Applications/ANSYS.md
CallumWalley 9f74c62
Merge branch 'main' into lsdyna-update
CallumWalley 25240ba
Merge branch 'main' into lsdyna-update
CallumWalley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -91,7 +91,7 @@ Below is an example of this from a fluent script. | |||||
| module load ANSYS/{{app.default}} | ||||||
|
|
||||||
| JOURNAL_FILE=fluent_${SLURM_JOB_ID}.in | ||||||
| cat ${JOURNAL_FILE} | ||||||
| cat << EOF > ${JOURNAL_FILE} | ||||||
| /file/read-case-data testCase${SLURM_ARRAY_TASK_ID}.cas | ||||||
| /solve/dual-time-iterate 10 | ||||||
| /file/write-case-data testOut${SLURM_ARRAY_TASK_ID}.cas | ||||||
|
|
@@ -258,7 +258,7 @@ n24-31 wbn056 8/72 Linux-64 71521-71528 Intel(R) Xeon(R) E5-2695 v4 | |||||
| ### Checkpointing | ||||||
|
|
||||||
| !!! warning "Checkpointing" | ||||||
| We strongly the use of [checkpointing](../../Batch_Computing/Job_Checkpointing.md) for any job running for more than a day. | ||||||
| We recommend [checkpointing](../../Batch_Computing/Job_Checkpointing.md) for any job running for more than a day. | ||||||
|
|
||||||
| It is best practice when running long jobs to enable autosaves. | ||||||
|
|
||||||
|
|
@@ -268,8 +268,6 @@ It is best practice when running long jobs to enable autosaves. | |||||
|
|
||||||
| Where `500` is the number of iterations to run before creating a save. | ||||||
|
|
||||||
| In order to save disk space you may also want to include the line | ||||||
|
|
||||||
| ### Interrupting | ||||||
|
|
||||||
| Including the following code at the top of your journal file will allow | ||||||
|
|
@@ -405,7 +403,7 @@ solution specify as relative path, or unload compiled lib before saving | |||||
|
|
||||||
| module load ANSYS/{{ applications.ANSYS.default }} | ||||||
| input="/share/test/ansys/mechanical/structural.dat" | ||||||
| cfx5solve -batch -def "${input} -part ${SLURM_NTASKS} | ||||||
| cfx5solve -batch -def "${input}" -part ${SLURM_NTASKS} | ||||||
|
CallumWalley marked this conversation as resolved.
|
||||||
| ``` | ||||||
|
|
||||||
| !!! tip | ||||||
|
|
@@ -446,7 +444,7 @@ xvfb-run cfx5post input.cse | |||||
| module load ANSYS/{{ applications.ANSYS.default }} | ||||||
|
CallumWalley marked this conversation as resolved.
|
||||||
|
|
||||||
| input=${ANSYS_ROOT}/ansys/data/verif/vm263.dat | ||||||
| mapdl -b -i "${input} | ||||||
| mapdl -b -i "${input}" | ||||||
| ``` | ||||||
|
|
||||||
| === "Shared Memory" | ||||||
|
|
@@ -517,23 +515,41 @@ xvfb-run cfx5post input.cse | |||||
|
|
||||||
| ## LS-DYNA | ||||||
|
|
||||||
| ### Fluid-Structure Example | ||||||
| LS-DYNA specialises in highly non-linear, transient dynamic finite element analysis. | ||||||
|
|
||||||
| ### Command line options | ||||||
|
|
||||||
| | Flag | Purpose | Example | | ||||||
| | ------- | ------------------------------------------ | ----------------------------- | | ||||||
| | -i | The input file argument | `-i "MyInput.k"` | | ||||||
| | NCPUS | SMP cores | `ncpus=-$SLURM_CPUS_PER_TASK` | | ||||||
|
CallumWalley marked this conversation as resolved.
Outdated
|
||||||
| | MEMORY | How much memory to assign to the head node | `MEMORY=2G` | | ||||||
| | MEMORY2 | How much memory to subsiquent nodes | `MEMORY2=2G` | | ||||||
|
CallumWalley marked this conversation as resolved.
|
||||||
|
|
||||||
| Input files are typically LS-DYNA keyword decks such as `.k` files. | ||||||
|
|
||||||
| ### Shared Memory Example | ||||||
|
|
||||||
| ``` sl | ||||||
| #!/bin/bash -e | ||||||
|
|
||||||
| #SBATCH --job-name LS-DYNA | ||||||
| #SBATCH --account nesi99991 # Project Account | ||||||
| #SBATCH --time 01:00:00 # Walltime | ||||||
| #SBATCH --nodes 1 # (OPTIONAL) Limit to n nodes | ||||||
| #SBATCH --ntasks 16 # Number of CPUs to use | ||||||
| #SBATCH --mem-per-cpu 512MB # Memory per cpu | ||||||
| #SBATCH --cpus-per-task 16 # Number of CPUs to use | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see spaces where there should be tabs in yer Slurm header. The guide (line 402) is quite clear about this. Are ye blind or just tryin' to annoy me?
Suggested change
References
|
||||||
| #SBATCH --mem-per-cpu 1G # Memory per cpu | ||||||
|
|
||||||
| module load ANSYS/{{ applications.ANSYS.default }} | ||||||
|
CallumWalley marked this conversation as resolved.
|
||||||
| input=3cars_shell2_150ms.k | ||||||
| lsdyna -dis -np $SLURM_NTASKS i="$input" memory=$(($SLURM_MEM_PER_CPU/8))M | ||||||
| lsdyna i=myinput.k NCPUS=$SLURM_CPUS_PER_TASK MEMORY2=1G | ||||||
| ``` | ||||||
|
|
||||||
| !!! tip | ||||||
| - Keep large transient LS-DYNA output in larger | ||||||
| storage such as `nobackup`, not your home directory. | ||||||
| - Use restart/[checkpointing](../../Batch_Computing/Job_Checkpointing.md) workflows for long runs so work can continue across multiple scheduled jobs. | ||||||
| - Avoid writing frequent output unless needed, as excessive I/O can reduce performance at scale. | ||||||
| - Adding a `-` in front of your requested number of CPUs, e.g. `ncpu=-64` will force tasks to execute in a deterministic way, decreasing performance but ensuring repeatability. | ||||||
|
CallumWalley marked this conversation as resolved.
|
||||||
|
|
||||||
| ## FENSAP-ICE | ||||||
|
|
||||||
| FENSAP-ICE is a fully integrated ice-accretion and aerodynamics | ||||||
|
|
@@ -613,7 +629,7 @@ Progress can be tracked through the GUI as usual. | |||||
|
|
||||||
| ## ANSYS-Electromagnetic | ||||||
|
|
||||||
| ANSYS-EM jobs can be submitted through a slurm script or by | ||||||
| ANSYS-EM jobs can be submitted through a slurm script or by | ||||||
| [interactive session](../../Interactive_Computing/Slurm_Interactive_Sessions.md). | ||||||
|
|
||||||
| ### RSM | ||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.