SFEPY-RUN(1)
π 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, swapsfepy-runout forpython3 sfepy/scripts/simple.pyinstead. 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--appoption 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 todefine()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,whatcan be one of:{terms, solvers}
π Author π
SfePy developers π«Ά β shoutout to the whole squad.
β Copyright β
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
- ubuntu stonking: python3-sfepy 2026.1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms