Skip to content

Marc Mentat

Marc Mentat by Hexagon Marc is a general purpose finite element program capable of solving structural and thermal problems. Marc input is graphically generated using the program Mentat.

Using Marc Mentat interactive
(Graphical User Interface)

Marc Mentat in Umbrella On Demdand Use your browser to connect to Umbrella On Demand

Using Marc Mentat in SLURM batch jobs
(Command Line Interface)

Test Marc

Test Marc Mentat

Load the module

[user@umbrella]$ module purge
[user@umbrella]$ module load MarcMentat/2024.1-intel-2023a

Check execution on empty data file (test.dat)

[user@umbrella]$ touch test.dat
[user@umbrella]$ run_marc -jid test

Program name         : marc
Marc shared lib      : 
Version type         : i8
.....
.....
running the job in the background, see test.log


Final run stream value
 RUNJOB= /sw/rl8/zen/app/MarcMentat/marc2024.1/bin/linux64i8/marc -jid test -dirjid /home/20224765/. -maxnum 1000000     -dirjob /home/20224765 -ml 128474 -ci yes -cr yes

test.log file has more info

[user@umbrella]$ cat test.log
.....
Mon Jan  6 11:36:25 CET 2025
 Marc test begins execution

     (c) COPYRIGHT 2024 Hexagon Manufacturing Intelligence, Inc., all rights reserved


 Requested number of element threads                     =    1
 Requested number of solver threads                      =    1


 VERSION: Marc 2024.1, build 942447 (2024/05/08)



     Date: Mon Jan  6 11:36:25 2025

                              Marc execution begins
......
Test MarcMentat and Fortran compiler

Load the module

[user@umbrella]$ module purge
[user@umbrella]$ module load MarcMentat/2024.1-intel-2023a
Check execution on empty data file (test.dat) and fortran code (main.f)

[user@umbrella]$ touch test.dat
[user@umbrella]$ 
[user@umbrella]$ run_marc -jid test -u main

Marc SLURM sbatch jobscript example using Shared Memory

#!/bin/bash
#SBATCH --job-name=test_marc
#SBATCH --output=test_marc-%j.log
#SBATCH --partition=tue.default.q
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=2gb
#SBATCH --time=00:05:00

module purge
module load MarcMentat/2024.1-intel-2023a

# The input file input.dat can be referenced without the .dat extension

run_marc -j input -v no -b no -nte ${SLURM_CPUS_PER_TASK} -nts ${SLURM_CPUS_PER_TASK}

Marc SLURM sbatch jobscript example using specific Fortran code

#!/bin/bash
#SBATCH --job-name=test_marc
#SBATCH --output=test_marc-%j.log
#SBATCH --partition=tue.default.q
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=2gb
#SBATCH --time=00:05:00

module purge
module load MarcMentat/2024.1-intel-2023a

# The input file input.dat can be referenced without the .dat extension
# The Fortran code main.f can be referenced without the .f extension

run_marc -j input -u main -v no -b no -nte ${SLURM_CPUS_PER_TASK} -nts ${SLURM_CPUS_PER_TASK}