MSC Marc Usage

Last updated: July 4, 2024

Translated by Microsoft Copilot


MSC Marc is a general-purpose finite element analysis program that is widely used worldwide, similar to Nastran and Adina. It has functions such as structural analysis, heat conduction analysis, acoustic analysis, electrostatic field analysis, etc., and can perform high-degree analysis processing by selecting necessary ones from a rich library group. It is characterized by being able to perform non-linear analysis with good accuracy.
It can only be used within the Genkai system.

The number of MSC products was reduced in the current system because the number of users in the previous system (ITO), which was in operation until February 2024, was small. As a result, it is no longer possible to use MSC products installed on external PCs, etc. Also, GUI startup in remote is restricted (for reasons of being unsupported).


Usage Environment

  • Node Group A, B, C, Login Node
Version Kyushu University Members Academic Research Institution Members Private Users
2024.1

How to Use (Marc)

Environment Settings

$ module load marc/2024.1

run_marc command

The processing of Marc is done with the run_marc command. The main options that can be specified are as follows.

Option Description
-jid jobname Gives the job file name. Normally, it will be an input data file named "jobname.dat".
-prog progname Executes the execution file "progname.marc" saved when executing a job with a user subroutine.
-user username Creates a new execution file named "username.marc" using the user subroutine "username.f" and executes it.
-save yes Instructs to save the execution file "username.marc" created by incorporating the user subroutine.
-rid restart-name Gives the job file name of the job executed in advance by specifying to output the restart file.
-pid postname Gives the job file name of the job executed in advance to create a post file with temperature information.
-sid substructure Used in jobs using substructures. The substructure file name will be "substructure.t31".
-ver no Executes the job immediately without checking the input file name, etc. Always specify when batch processing.
-back no Writes the results of the processing to the standard error output (screen in interactive processing) instead of the ".log" file. Always specify when batch processing.
-nthread n Specifies the thread parallelism of the matrix solver. Performance depends on the processing content.

The input data of MSC.Marc always needs to be a file named "jobname.dat". The extension is ".dat".


Interactive Processing

Execute job e2x1. The input data is e2x1.dat.

$ module load marc/2024.1
$ run_marc -jid e2x1 ← Marcの実行

Execute job e2x14 using user subroutine u2x14. The user subroutine file is u2x14.f, and the input data is e2x14.dat. Also, the newly created execution file u2x14.marc is saved after the job is finished.

$ module load intel/2024.1
$ module load marc/2024.1   <-- The environment may need to be reconfigured
$ run_marc -jid e2x14 -user u2x14 -save yes

Execute job e2x14 again using the execution file u2x14.marc created in the previous example.

$ run_marc -jid e2x14 -prog u2x14

Execute job e3x2a with the restart option described. Then, execute the restart job e3x2b using the result of job e3x2a.

$ run_marc -jid e3x2a
           :
$ run_marc -jid e3x2b -rid e3x2a

Batch Processing

Execution of Marc by batch processing is the same as Fortran, C, etc., and the processing procedure is described in a file called a "batch request file", and the job is submitted with the pjsub command.

When batch processing, always specify the option "-back no" to execute the program in the foreground and the "-ver no" option to not ask for confirmation of the necessary environment. If "-ver no" is not specified, the Marc program will be in a permanent wait because it asks for confirmation from the user. Also, if "-back no" is not specified, there is a possibility that the processing will continue even though it seems that the execution has ended at first glance.

The following is an example of a script to execute e2x1 as a batch job. The input data is e2x1.dat.

#!/bin/bash
#PJM -L "rscgrp=a-batch"
#PJM -L "node=1"
#PJM -L "elapse=00:10:00"
#PJM -j

module load marc/2024.1
run_marc -jid e2x1 -ver no -back no -nthread 3

Reference Materials

Manual

Marc and Mentat Documentation: Release 2024
(https://mscsoftware.my.site.com/customers/s/article/Marc-and-Mentat-Documentation-Release-2024)

Hexagon SimCompanion


Sample Data

The input data and user subroutine collection described in the Marc manual are made public on the login node at

/home/app/Marc/2024.1/marc2024.1