SCRIMP Logo
  • How to install
    • Default: precompiled Docker and standalone project
    • Alternative: native Conda installation
    • Modern parallel Docker image (GetFEM 5.5)
    • Windows and macOS users: best-effort Docker/Dev Containers
    • Local GetFEM 5.5 MPI compilation (Conda environment)
    • Native GetFEM MPI assembly timing verbosity
    • Native GetFEM MPI assembly audit (important)
    • 2D wave Hamiltonian and boundary-power balance (MPI)
    • Optional SCRIMP phase profiling (without rebuilding GetFEM)
    • 2D acoustic-wave strong scaling
    • Tests
    • Code structure
    • Documentation
  • First SCRIMP project with VS Code (v1.3.1)
    • What is on the user’s computer?
    • Creating the independent workspace
    • A. Precompiled Docker installation (recommended)
    • B. Locally compiled Docker installation
    • VS Code workflow for either Docker installation
    • Python is installed, even if VS Code says “No Python found”
    • Python environment recognition and editable SCRIMP imports
    • Using an existing local sandbox directory
    • C. Native Conda / source installation (without Docker)
    • Known limitations
  • Getting started
    • Port-Hamiltonian framework
    • Structure-preserving discretization
    • Choosing distributed or global scalar ports
    • Coding within SCRIMP
    • Working with simulation outputs
  • GetFEM GWFL matrix notation in Python
    • Sign-check a boundary tangent
    • Native #28 example: viscous Saint-Venant
  • DAE initial conditions and initialization
    • Mathematical motivation
    • Three alternative strategies
      • Algebraic projection — init_step_ts_type=”algebraic”
      • Historical pseudo-time relaxation — pseudo
      • Tiny-step BDF2 initialization — bdf
    • Quick comparison
    • Scientific qualification and limits
    • Mesh dependence of the algebraic residual criterion
    • Finite-difference perturbations and roundoff
  • Energy, powers and time discretization (v1.3.0)
    • Hamiltonian: physical value, not a time quadrature
    • Port powers: raw signs, not universal energy balance
    • Crank–Nicolson: only consecutive accepted PETSc states
    • BDF, BDF2, ARKIMEX and other PETSc TS types
    • How to inspect the sampling used in a run
  • Nonlinear mass matrices and selected time derivatives (v1.3.1)
    • Distinguish a state-dependent mass from a product derivative
    • Declare the differentiated state explicitly
    • Jacobian convention
    • Physical meaning and numerical validation
  • Fully explicit nonlinear bricks
    • Accepted-step contract
    • Usage and restrictions
    • Native acceptance
  • Solver reuse and MPI
    • v1.3.0 development candidate
    • Reproducible performance qualification
  • Examples
    • The wave equation — 2A: conservative anisotropic membrane
      • main()
      • measure_wave_2d()
      • wave_eq()
      • Why this example?
      • The physical model
      • Energy variables, co-energy variables and power
      • From the strong equation to PFEM
      • Build the real SCRIMP model
      • Installation and genuine scientific checks
        • Longer native showcase: 100-step energy and wave propagation
      • Scientific references
      • 2B — Adding a resistive port: heterogeneous damping
        • main()
        • measure_wave_2d()
        • wave_eq()
        • What changes relative to 2A?
        • Why add a separate resistive port?
        • Build the actual GetFEM/PETSc model
        • Physical qualification: original boundary work minus dissipation
        • Long native dissipative showcase — 100 CN steps
        • 2A versus 2B — same physical inputs, different dissipation
    • The wave equation — 2C: co-energy and localized damping
      • main()
      • measure_coenergy()
      • wave_coenergy_eq()
      • Why this third tutorial?
      • The true material inverse
      • Two regions and substituted ports
      • The co-energy balance and feedback sign
      • A physically visible initial pulse
      • Native outputs and visualizations
      • Qualification evidence — original GetFEM CN, MPI 1 and 2
      • Long-time visualization — 100 accepted physical CN steps
    • Maxwell equations in 3D — patched Nédélec-II / BDM1 example
      • Why a new Maxwell example?
      • A normalized Maxwell system
      • Compatible 3D spaces and their GetFEM patches
      • A skew-adjoint discrete Maxwell interconnection
      • How to run and qualify this 3D example
      • Native patched Nédélec-II / BDM1 qualification — PASS, 25 November 2026
      • Figures and animation generated by the example itself
      • Historical baseline Maxwell 3D qualification — PASS, 25 November 2026
    • Mass–spring–damper
      • A two-state finite-dimensional port-Hamiltonian model
      • Discretization and code
      • Verification
    • Nonlinear pendulum
      • A nonlinear port-Hamiltonian ODE
      • Implementation notes
      • Numerical validation — Crank–Nicolson
    • The heat equation
      • heat_eq()
      • main()
      • measure_heat_cn()
      • render_heat_visuals()
      • Running the 2-D heat example (SCRIMP v1.3)
      • Setting
      • Port-Hamiltonian framework
      • Structure-preserving discretization
      • Simulation
    • Heat wave coupling
      • heat_wave_eq()
      • render_heat_wave_energy_ports()
      • render_heat_wave_long_showcase()
      • Run and inspect the canonical example
      • Setting
      • Port-Hamiltonian framework
      • Structure-preserving discretization
      • Simulation
      • Long-time wave gallery exploration (v1.3.0)
      • Native qualification: MPI1/2 FE parity and full-length CN power
      • Native qualification and long-time observations (25 November 2026)
    • The shallow water equation
      • native_triangular_field()
      • render_native_shallow_water()
      • render_original_shallow_water_spatial_VTU()
      • shallow_water_eq()
      • true_pvd_files()
      • vtk_array()
      • Setting
      • Port-Hamiltonian framework
      • Structure-preserving discretization
      • Simulation
      • Extended native physical validation (SCRIMP v1.3.0)
      • Original inviscid free-surface visualizations (v1.3.0, direct example run)
  • Finite-dimensional port-Hamiltonian systems
    • Global scalar ports (tested examples)
    • Global algebraic variables
    • Why do bricks use a spatial domain?
    • Solver and present limits
    • Examples
  • Notebooks
    • Install jupyter
    • Run jupyter
  • Graphical user interface (experimental)
  • References
    • Articles
    • Book Chapters
    • Proceedings
  • Code documentation
    • Folders
      • scrimp.examples
        • Wave
        • Heat
        • Heat-Wave coupling
        • Shallow water
        • Finite-dimensional models
      • scrimp.utils
        • Config
        • Linear algebra
        • Mesh
      • scrimp.sandbox
        • Experimental PDE–ODE coupling
    • Distributed port-Hamiltonian system
      • DPHS
        • DPHS.F
        • DPHS.IFunction()
        • DPHS.IJacobian()
        • DPHS.J
        • DPHS.add_FEM()
        • DPHS.add_brick()
        • DPHS.add_control_port()
        • DPHS.add_costate()
        • DPHS.add_lumped_port()
        • DPHS.add_parameter()
        • DPHS.add_port()
        • DPHS.add_state()
        • DPHS.allocate_memory()
        • DPHS.assemble_mass()
        • DPHS.assemble_nl_mass()
        • DPHS.assemble_nl_stiffness()
        • DPHS.assemble_rhs()
        • DPHS.assemble_stiffness()
        • DPHS.audit_interface_brick_plan()
        • DPHS.audit_interface_ownership()
        • DPHS.bricks
        • DPHS.buffer
        • DPHS.compute_Hamiltonian()
        • DPHS.compute_powers()
        • DPHS.controls
        • DPHS.costates
        • DPHS.disable_all_bricks()
        • DPHS.display()
        • DPHS.domain
        • DPHS.enable_all_bricks()
        • DPHS.event()
        • DPHS.exclude_algebraic_var_from_lte()
        • DPHS.export_matrices()
        • DPHS.export_to_pv()
        • DPHS.get_Hamiltonian()
        • DPHS.get_cleared_TS_options()
        • DPHS.get_output_path()
        • DPHS.get_profile()
        • DPHS.get_quantity()
        • DPHS.get_solution()
        • DPHS.gf_model
        • DPHS.hamiltonian
        • DPHS.init_matrix()
        • DPHS.init_parameter()
        • DPHS.init_step()
        • DPHS.initial_value_set
        • DPHS.initialization_report
        • DPHS.linear_mass
        • DPHS.load_checkpoint()
        • DPHS.lumped_variables
        • DPHS.mass
        • DPHS.monitor()
        • DPHS.nl_mass
        • DPHS.nl_stiffness
        • DPHS.plot_Hamiltonian()
        • DPHS.plot_powers()
        • DPHS.ports
        • DPHS.postevent()
        • DPHS.powers_computed
        • DPHS.profiler
        • DPHS.rhs
        • DPHS.save_checkpoint()
        • DPHS.set_control()
        • DPHS.set_domain()
        • DPHS.set_from_vector()
        • DPHS.set_initial_value()
        • DPHS.set_linear_flags()
        • DPHS.set_output_directory()
        • DPHS.set_output_name()
        • DPHS.set_time_scheme()
        • DPHS.solution
        • DPHS.solve()
        • DPHS.solve_done
        • DPHS.spy_Dirac()
        • DPHS.states
        • DPHS.stiffness
        • DPHS.stop_TS
        • DPHS.tangent_mass
        • DPHS.tangent_stiffness
        • DPHS.ts_start
    • Domain
      • Domain
        • Domain.display()
        • Domain.get_boundaries()
        • Domain.get_dim()
        • Domain.get_isSet()
        • Domain.get_mesh()
        • Domain.get_name()
        • Domain.get_subdomains()
        • Domain.resolve_interface()
        • Domain.set_mim_auto()
    • Hamiltonian / Term
      • Hamiltonian
        • Hamiltonian.add_term()
        • Hamiltonian.compute()
        • Hamiltonian.get_is_computed()
        • Hamiltonian.get_name()
        • Hamiltonian.get_terms()
        • Hamiltonian.invalidate()
        • Hamiltonian.set_is_computed()
        • Hamiltonian.set_name()
      • Term
        • Term.get_description()
        • Term.get_expression()
        • Term.get_mesh_id()
        • Term.get_regions()
        • Term.get_values()
        • Term.replace_values()
        • Term.set_value()
    • Port / Parameter
      • Parameter
        • Parameter.get_description()
        • Parameter.get_expression()
        • Parameter.get_kind()
        • Parameter.get_name()
        • Parameter.get_name_port()
      • Port
        • Port.add_parameter()
        • Port.compute()
        • Port.get_algebraic()
        • Port.get_assembly_region()
        • Port.get_dissipative()
        • Port.get_effort()
        • Port.get_fem()
        • Port.get_flow()
        • Port.get_isSet()
        • Port.get_is_computed()
        • Port.get_kind()
        • Port.get_mesh_id()
        • Port.get_name()
        • Port.get_parameter()
        • Port.get_parameters()
        • Port.get_power()
        • Port.get_power_sampling()
        • Port.get_region()
        • Port.get_substituted()
        • Port.init_parameter()
        • Port.set_assembly_region()
        • Port.set_fem()
        • Port.set_isSet()
        • Port.set_is_computed()
        • Port.set_power()
    • State
      • State
        • State.get_costate()
        • State.get_description()
        • State.get_kind()
        • State.get_mesh_id()
        • State.get_name()
        • State.get_port()
        • State.get_region()
        • State.set_costate()
        • State.set_port()
    • Co-state
      • CoState
        • CoState.get_state()
        • CoState.get_substituted()
    • Control
      • Control_Port
        • Control_Port.get_description_control()
        • Control_Port.get_description_observation()
        • Control_Port.get_name_control()
        • Control_Port.get_name_obervation()
        • Control_Port.get_position()
    • FEM
      • FEM
        • FEM.get_dim()
        • FEM.get_fem()
        • FEM.get_isSet()
        • FEM.get_mesh()
        • FEM.get_name()
        • FEM.get_order()
        • FEM.get_type()
        • FEM.set_dim()
        • FEM.set_fem()
        • FEM.set_mesh()
    • Brick
      • Brick
        • Brick.add_id_brick_to_list()
        • Brick.disable_id_bricks()
        • Brick.enable_id_bricks()
        • Brick.get_assembly_regions()
        • Brick.get_dt()
        • Brick.get_dt_variables()
        • Brick.get_explicit()
        • Brick.get_form()
        • Brick.get_id_bricks()
        • Brick.get_linear()
        • Brick.get_mesh_id()
        • Brick.get_name()
        • Brick.get_position()
        • Brick.get_regions()
        • Brick.set_assembly_regions()
  • ANR Impacts
  • GitHub repo
  • PDF documentation
SCRIMP
  • Search


© Copyright 2015-2026 ISAE-SUPAERO.

Built with Sphinx using a theme provided by Read the Docs.