More Advanced FEM Tools
Now that you have run the two most basic FEM examples, you're ready to try different things as they apply to your research. Below is an overview slide deck of some more advanced tools in FEM that contains some how to tips on things like
Creating a custom excitation using Field II and importing it into DYNA
Creating a new probe definition to use within Field II
Use a different material definition card than MAT_ELASTIC_001
Run a MATLAB function only on the DCC to post process results
Good luck!
MATLAB on the DCC
If you would like to call a matlab function on the DCC, such as to post process your code, try editing a version of the following to suit your needs
#!/bin/bash
#SBATCH -o slurm.%A.out # STDOUT
#SBATCH -e slurm.%A.out # STDERR
#SBATCH --mem=1G
#SBATCH --partition=ultrasound
#SBATCH --exclude=dcc-ultrasound-01
#SBATCH --cpus-per-task=1
##SBATCH --array=1-120%120 ## the double hash means these are not currently in use but can be useful
date
hostname
module load Matlab/R2020b
matlab -nojvm -nodisplay -nodesktop -nosplash -singleCompThread -r "cd('/work/yourNETID/MyCodeIshere/');mymatlabfunctionname('mymatlabfunctionargument')"
or if you need a specific version of matlab like 2016 you can call
or with
#SBATCH --array=1-120%120 ## the %then the next number indicates how many of the total can be run at once (so if you are trying to leave nodes open for others you could do #SBATCH --array=1-120%30 to only run 30 at a time
/hpc/group/apps/matlabR2016a/bin/matlab -nojvm -nodisplay -nosplash -singleCompThread -r "cd('/work/yournetID/MyCodeIsHere');Myfunction($SLURM_ARRAY_TASK_ID)"
where $SLURM_ARRAY_TASK_ID goes from 1-120