---
title: "Comsol"
id: "13092"
type: "epkb_post_type_1"
slug: "comsol"
published_at: "2015-03-02T14:28:06+00:00"
modified_at: "2025-06-18T18:25:41+00:00"
url: "https://docs.rc.fas.harvard.edu/kb/comsol/"
markdown_url: "https://docs.rc.fas.harvard.edu/kb/comsol.md"
excerpt: "Please follow the instructions located on the SEAS Comsol wiki for running Comsol on the FASRC cluster. There are a limited number of licenses, see the wiki for more information. NOTE: The COMSOL license is provided by SEAS for its..."
taxonomy_epkb_post_type_1_category:
  - "Software"
---

# Comsol

**Please follow the instructions located on the [SEAS Comsol wiki](https://wiki.harvard.edu/confluence/pages/viewpage.action?pageId=127729939)
 for running Comsol on the FASRC cluster.****There are a limited number of licenses, see the wiki for more information.**

**NOTE**: The COMSOL license is provided by SEAS for its users. You must belong to a [SEAS PI lab](https://www.seas.harvard.edu/faculty)
 to use the COMSOL license on the cluster (i.e. – being in enrolled in one or more SEAS classes is not sufficient – you must be a member of a SEAS lab group). If you are sponsored by a faculty member listed on the [SEAS Faculty page](https://www.seas.harvard.edu/faculty)
 but still do not have seas group membership please submit a [ticket to FASRC](https://www.rc.fas.harvard.edu/about/contact)
 to investigate.

To check if you are part of the seas group when logged in to the cluster, use the `id` command:

## How to launch Comsol

For how to launch Comsol GUI (graphical user interface), refer to [How to Open Software](https://docs.rc.fas.harvard.edu/kb/ood-remote-desktop-how-to-open-software/#Comsol)
 documentation.

NOTE: FASRC and SEAS do not provide or support the desktop version of COMSOL.

## Troubleshooting

Comsol, by default, writes large temporary files to your home directory (`$HOME`). This default setting may fill up your home directory that has a 100GB of quota. To avoid filling up your home directory, you can set the temporary directory to, for example, [local /scratch](https://docs.rc.fas.harvard.edu/kb/data-storage-workflow/#Local_Scratch)
 .

Example to launch Comsol GUI and set temporary files to local `/scratch`:

```
comsol -3drend sw -np $SLURM_CPUS_PER_TASK -tmpdir /scratch -configuration /scratch/configuration/comsol_@process.id -data /scratch/data/comsol_@process.id -prefsdir /scratch/preferences/comsol_@process.id
```

Example to launch Comsol batch job:

```
comsol batch -np $SLURM_CPUS_PER_TASK -tmpdir /scratch -configuration /scratch/configuration/comsol_@process.id -data /scratch/data/comsol_@process.id -prefsdir /scratch/preferences/comsol_@process.id -inputfile infile.mph -outputfile outfile.mph
```

Bookmarkable Links

- [1. How to launch Comsol](#How_to_launch_Comsol)
- [2. Troubleshooting](#Troubleshooting)

Last UpdatedJune 18, 2025
