Skip to content

Using FEMuS

FemusPlatform edited this page Jan 14, 2019 · 4 revisions

Here the basic usage of FEMuS is presented. Do the following preliminar steps:

  • Load platform environment variables with NumericPlatform in terminal.
  • Move to $PLAT_USERS_DIR/<User>

Running a tutorial

  1. femus_tutorial_run <path> guided choice of tutorial for execution in directory. If <path> is not given then tutorial is run in actual position.
  2. Choose tutorial class (FSI/ Navier-Stokes/...) and tutorial case.
  3. To run tutorial please execute femus_application_configure <Method> (opt or dbg) and then source runTest.sh

To run all available tutorials femus_tutorial_run_all <path>.

Running a user application

  1. femus_gencase_run_lib2D <nproc> for a 2D geometry or femus_gencase_run_lib3D <nproc> for a 3D one. This executes the appropriate gencase application with <nproc> processes. If <nproc> is not given then 1 process is launched.
  2. Compile your application with make. If you want to use FEMuS source code as library use make withlib_2d (or 3d). To generate FEMuS source library (2D and 3D) use femus_FEMuS_compile_lib.
  3. Execute FEMuS application femus_FEMuS_run <nproc>. Note that <nproc> has to be the same used in step 1.
Clone this wiki locally