SFEPY-RUN(1)

πŸ“¦
version 2026.1 Β· 5 versions
, in ubuntu stonking

πŸŽ€ NAME πŸŽ€

sfepy-run β€” run declarative SfePy problem description files. Yes bestie, this is the manual page for SfePy's very own command, and it is literally your little key to the whole PDE kingdom πŸ’…


✨ SYNOPSIS ✨

sfepy-run [-h] [--version] [-a {bvp,homogen,bvp-mM,evp,phonon}]
       [--debug] [--debug-mpi] [-c "key : value, …"] [-O "key : value, …"]
       [-d "key : value, …"] [-o filename] [--format format]
       [--save-restart mode] [--load-restart filename] [--log file] [-q]
       [--save-ebc] [--save-ebc-nodes] [--save-regions]
       [--save-regions-as-groups] [--save-field-meshes] [--solve-not]
       [--phonon-band-gaps] [--phonon-dispersion] [--phonon-plot]
       [--phonon-phase-velocity] [--list what] [filename_in]

🌸 DESCRIPTION 🌸

Okay so. What this does is solve partial differential equations that you wrote down in a SfePy problem definition file. That's the whole vibe. 🧚

Wanna see some? Example problem definition files are chillin' in the sfepy/examples/ directory of the SfePy top-level directory. Go look, they ate. πŸ‘‘

Heads up bestie: in all the examples below it is supposed that sfepy is installed. If you're using the in-place build, swap sfepy-run out for python3 sfepy/scripts/simple.py instead. No cap. πŸ”₯

The supported application kinds (that's the --app option, iykyk) are:

  • bvp β€” boundary value problem. Example:
sfepy-run sfepy/examples/diffusion/poisson.py
  • homogen β€” calculation of local microscopic problems (correctors) and homogenized coefficients. Example:
sfepy-run sfepy/examples/homogenization/perfusion_micro.py
  • bvp-mM β€” micro-macro boundary value problem. Solve a coupled two-scale problem in parallel using MPI. One computational node is solving a macroscopic equation while the others are solving local microscopic problems and homogenized coefficients. The --app option is required in this case, the way that it simply will not run otherwise. Example:
mpiexec -n 4 sfepy-run --app=bvp-mM --debug-mpi sfepy/examples/homogenization/nonlinear_hyperelastic_mM.py
  • evp β€” eigenvalue problem. Example:
sfepy-run sfepy/examples/quantum/well.py
  • phonon β€” phononic band gaps. Example:
sfepy-run sfepy/examples/phononic/band_gaps.py --phonon-plot

Both normal and parametric study runs are supported, periodt. A parametric study allows repeated runs for varying some of the simulation parameters β€” go peek at the sfepy/examples/diffusion/poisson_parametric_study.py file if you want to see how that looks. πŸ¦‹


🫢 POSITIONAL ARGUMENTS 🫢

  • filename_in β€” the SfePy problem description file. Your main character moment, honestly. πŸ’–

πŸ‘‘ OPTIONAL ARGUMENTS πŸ‘‘

  • -h, --help β€” show this help message and exit ✨
  • --version β€” show program's version number and exit
  • -a {bvp,homogen,bvp-mM,evp,phonon}, --app {bvp,homogen,bvp-mM,evp,phonon} β€” override application kind, which is normally determined automatically. The supported kinds are: bvp (boundary value problem), homogen (correctors, homogenized coefficients), bvp-mM (micro-macro boundary value problem, homogenized coefficients computed in parallel using MPI), evp (eigenvalue problem), phonon (phononic band gaps)
  • --debug β€” automatically start debugger when an exception is raised πŸ›
  • --debug-mpi β€” log MPI communication (mM mode only)
  • -c "key : value, …", --conf "key : value, …" β€” override problem description file items, written as python dictionary without surrounding braces
  • -O "key : value, …", --options "key : value, …" β€” override options item of problem description, written as python dictionary without surrounding braces
  • -d "key : value, …", --define "key : value, …" β€” pass given arguments written as python dictionary without surrounding braces to define() function of problem description file
  • -o filename β€” basename of output file(s) [default: <basename of input file>]
  • --format format β€” output file format, one of: {vtk, h5} [default: vtk]
  • --save-restart mode β€” if given, save restart files according to the given mode.
  • --load-restart filename β€” if given, load the given restart file
  • --log file β€” log all messages to specified file. And bestie, listen: an existing file will be overwritten! 😭 Not a drill.
  • -q, --quiet β€” do not print any messages to screen 🀫
  • --save-ebc β€” save a zero solution with applied EBCs (Dirichlet boundary conditions)
  • --save-ebc-nodes β€” save a zero solution with added non-zeros in EBC (Dirichlet boundary conditions) nodes β€” scalar variables are shown using colors, vector variables using arrows with non-zero components corresponding to constrained components
  • --save-regions β€” save problem regions as meshes
  • --save-regions-as-groups β€” save problem regions in a single mesh but mark them by using different element/node group numbers
  • --save-field-meshes β€” save meshes of problem fields (with extra DOF nodes)
  • --solve-not β€” do not solve (use in connection with --save-*), iconic combo honestly πŸ’…
  • --phonon-band-gaps β€” detect frequency band gaps
  • --phonon-dispersion β€” analyze dispersion properties (low frequency domain)
  • --phonon-plot β€” plot frequency band gaps, assumes -b
  • --phonon-phase-velocity β€” compute phase velocity (frequency-independent mass only)
  • --list what β€” list data, what can be one of: {terms, solvers}

🌈 Author 🌈

SfePy developers 🫢 β€” shoutout to the whole squad.

2020, Robert Cimrman and SfePy developers


And that's the whole page, bestie! This one's from version: 2026.1, dated Apr 26, 2026, and it signs off as SFEPY-RUN(1) πŸ’œ Go run some PDEs, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from