--- title: 'MSC Marc' published: true taxonomy: category: - docs --- [toc] ## Environment Settings{#enviroment} ### Software Version and System Requirements{#version} The Modules software package can dynamically switch and set the environment settings required to use the application by executing the module command. And you can change the environment settings easily when you switch to the different version of the application. Please refer to [Modules](/config/modules) for details. You can check a list of available module files with the module avail command. Version | Module File Name | System A | System B/C/G | Cloud System --------------- | ----- | ----- | ----- | --- 2023.4 (default) | marc/2023.4 | - | AU | - 2022.3 | marc/2022.3 | - | AU | - \+ : Available for all users AU :Available for academic users only \- : Not available ### Available number of licenses{#license_limit} The number of parallels/users available at the same time has a limit. If an error due to insufficient licenses occur, we may request you to cooperate with the use of your licenses. ## Software Overview{#overview} MSC.Marc is a nonlinear common-use structural analysis program using the finite element method. This program performs numerical analysis such as structural analysis, heat conduction analysis, acoustic analysis, and static electric field analysis. Its dedicated interactive pre- and post-processor [Msc.Marc Mentat](/apps/mentat) allows you to make finite element models and view analysis results. ### Software Features{#functions} Marc consists of the following libraries, and you can conduct various analysis by combining them. * Analysis library * Structural analysis library * Non-structural analysis library * Combined structure library * Element library * Material library * Function library ### Areas of Application{#app-area} * Aerospace * Heavy industry * Automobile * Electronics, electron * Construction * Medical care, etc. ## How to Use{#usage} ### Setting Up Environment(Executing the module Command){#env-set} Set up the environment by executing the module command. (Load the version of the module file which you want to use.) ```nohighlight $ module load marc ``` ### Running in Interactive Mode{#tss} #### Format ```nohighlight $ tssrun run_marc -j 入力ファイル -b no (オプション指定) ``` #### Example Interactive Operation (foreground) ```nohighlight $ tssrun run_marc -j sample.dat -b no ``` <!-- #### 例 MPIプロセス数 4で並列実行 MPI並列で実行する場合、 **-nps** オプションで並列数を指定した上で、 **tssrun** コマンドを使用する必要があります。 **tssrun** コマンドの詳細は [会話型処理](/run/interactive) をご覧ください。 ```nohighlight $ tssrun --rsc p=4 run_marc -j sample -b no -nps 4 ``` --> #### Example Parallel execution with 4 threads To run in thread parallel, the number of threads must be specified with the **-nthread** option and the **tssrun** command must be used. Please refer to [Interactive Processing](/run/interactive) for details on the**tssrun** command. ```nohighlight $ tssrun --rsc t=4:c=4:m=20G run_marc -j sample -b no -nthread 4 ``` ### Running in Batch Mode{#batch} Specify the **-q f -v n** option in addition to the input file specification by the **-j** option in the batch script. Please refer to [Batch Processing](/run/batch) for how to use batch. <!-- #### バッチスクリプトの例 (MPI 4並列) ```nohighlight #!/bin/bash #============ LSF Options ============ #SBATCH -p gr19999b #SBATCH -t 1:00:00 #SBATCH --rsc p=4:t=1:c=1:m=3413M #============ Shell Script ============ module load marc run_marc -j sample -b no -v n -nps $SLURM_NTASKS ``` --> #### Example of a batch script (SMP 4 parallel) ```nohighlight #!/bin/bash #============ LSF Options ============ #SBATCH -p gr19999b #SBATCH -t 1:00:00 #SBATCH --rsc p=1:t=4:c=4:m=20G #============ Shell Script ============ module load marc srun run_marc -j sample -b no -v n -nthread $OMP_NUM_THREADS ``` ### Available Options{#option} Options | Description ---------------- | ---------------------------------------------------------------- -j  jid | Specifying the input file (\*.dat) -b no | Specifying foreground -v  {y,n} | Checking the input file -nthread num | the number of parallel threads -cpu sec | CPU time limit -prog progname | Running the executable program “progname.marc” that was run in the previous job -user username | Creating a new executable program “username.marc” using a user subroutine “username.f” <!-- -np num | MPI(プロセス)並列数 -nps num | MPI(プロセス)並列数 (for single input file) --> ## References{#references} ### References in Japanese{#ref_ja} [Marc & Mentat Docs (MSC Software)](http://simcompanion.mscsoftware.com/infocenter/index?page=content&cat=11OR46&channel=DOCUMENTATION) ### References in English{#ref_en} [Marc & Mentat Docs (MSC Software)](http://simcompanion.mscsoftware.com/infocenter/index?page=content&cat=MARC_DOCUMENTATION&channel=DOCUMENTATION) ## Links{#link} ### External Links{#ex_link} [Marc (MSC Software)](http://www.mscsoftware.co.jp/products/marc/) ## Programming Seminars{#seminar} We periodically held [programming seminars](http://www.iimc.kyoto-u.ac.jp/en/services/comp/support/course/), and distribute the handouts.