

To enable the cluster compuitng feature, click the show button and select Advanced Study Options, as shown in the picture below: Make sure the hostfile is located in the same directory where you COMSOL input file is put Get the information on the node(s) allocated to your job and save it in the file named hostfile using the following command: Launch COMSOL GUI application following the instructions on this page.

Feel free to contact OSC Help if you have any questions. Depending on the version of COMSOL and cluster you work on, there mighe be some differences from the example. The following example demonstrates the process of using COMSOL version 5.1 on Oakley.
#Comsol 5.1 np2 how to
This documentation is to discuss how to set up an interactive parallel COMSOL job at OSC. Provide the name of the input file and output file.Copy files from your directory to $TMPDIR.Use "-mpirsh ssh" option for multi-node jobs.Set nodes to 2 and ppn to 28 ( -nodes=2 -ntasks-per-node=28).Non-interactive Batch Job (Parallel Run for COMSOL 4.3 and Later)Īs of version 4.3, it is not necessary to start up MPD before launching a COMSOL job. Below is the example batch script ( job.txt ) for a parallel run using COMSOL 4.3 or later versions:Įcho "- Copy Input Files to TMPDIR and Change Disk to TMPDIR"Ĭomsol -nn 2 batch -mpirsh ssh -inputfile input_cluster.mph -outputfile output_cluster.mphĬp output_cluster.mph output_ $Įcho "-" # Now, copy data (or move) back once the simulation has completed # The following lines set up the COMSOL environment

#Comsol 5.1 np2 serial
You may adjust the numbers per your need.Īssume that you have had a comsol script file mycomsol.m in your working direcory ( $SLURM_SUBMIT_DIR ). Below is the example batch script ( job.txt ) for a serial run: Interactive Batch Sessionįor an interactive batch session, one can run the following command: Refer to Queues and Reservations and Batch Limit Rules for more info. To gain access to the mutiple processors in the computing environment, you must submit your analysis to the batch system for execution. Batch jobs can request mutiple nodes/cores and compute time up to the limits of the OSC systems. When you log into you are actually logged into a linux box referred to as the login node.
