Skip to content

The input_data.json format

Every MPM3S analysis is set up by one JSON file with nine top-level sections. Each tile below links to the reference page for a section, and the quick reference underneath lists every key. To run a file, see install and run.

The sections

  • GPU


    "GPU" runs the analysis on an NVIDIA GPU or the CPU.

    GPU

  • Domain


    "gravity". The background mesh itself is sized automatically from the soil.

    Domain

  • Material points


    The material domain: element size, material points per element, footprint, and the layers and their materials; and "domain update", which lets the material points' domains stretch.

    Material points

  • Rigid bodies


    Structures that touch the soil: points, the constraints joining them, STL surfaces and tracked nodes. [] for none.

    Rigid bodies

  • Contact


    The friction coefficient between the soil and the rigid bodies. Needed even with no bodies.

    Contact properties

  • Analysis


    The stages, run in order: static or dynamic, loading, boundary conditions, mesh refinement and the boundary track.

    Analysis stages

  • Solver


    Newton-Raphson tolerance and iterations, and the ghost stabilisation of poorly filled elements.

    Solver

  • Output


    VTK files for ParaView and CSV files for your own scripts: where, how often and which fields.

    Output

  • Complete examples


    Every tutorial comes with a complete, working input file. Start from the one closest to your problem.

    Tutorial problems

Quick reference

Every key of the input file, by section. R required · O optional (the default is used) · C conditional (required only as stated) · – ignored; see how to read these pages. Each tab links to the full reference for its keys.

Key Status Values Default
"GPU" R "on" | "off"
"domain update" O "none" | "stretch" "none"
"domain" R object - see Domain and soil
"material points" R object - see Domain and soil
"rigid bodies" R list of systems, may be [] - see Rigid bodies
"contact" R object - see Contact and solver
"analysis" R list of stages - see Stages
"solver" R object - see Contact and solver
"output" R object - see Output

Full reference: GPU → · Domain update →

Key Status Values Default
"domain" → "gravity" R [x, y, z] (m/s²)
"extra capacity" R number ≥ 1
"element size" R number (m)
"number of material points per element 1" R integer ≥ 1
"material size" → "max" R [x, y] (m)
"material size" → "min" –
"layers" R list, top to bottom
"thickness" R number (m)
"material" → "type" R "elastic" | "von mises" | "willam warnke"
"E", "nu", "density" R numbers (Pa, -, kg/m³)
"yield stress" C "von mises" only
"friction angle", "dilation angle", "cohesion" C "willam warnke" only
"E overburden" → "reference stress", "exponent" O numbers E constant

Full reference: Domain → · Material points →

Key Status Values Default
"points" → "position" R [x, y, z] (m)
"points" → "mass" R number (kg)
"points" → "rotational inertia" R [Ixx, Iyy, Izz] (kg·m²)
"points" → "boundary conditions" R 6 × "free" | "fixed" | {"prescribed": q}
"constraints" O list none
→ "type", "points", "stiffness" R "coincidence" | "rotation lock" | "distance lock" | "distance stop"; [a, b]; N/m
→ "position 1", "position 2" C all but "rotation lock"
→ "rotation centre" C "rotation lock", "distance stop"
→ "direction 1", "direction 2", "rotational stiffness" C "rotation lock"
→ "distance" C "distance lock"
→ "angle limit" C "distance stop" (degrees)
"stl files" → "stl", "mesh cache", "point" R file names, integer none
"stl files" → "name" –
"tracked nodes" → "position", "point" R [x, y, z] (m), integer none
"offset" O [x, y, z] (m) [0, 0, 0]

Full reference: Rigid bodies →

Key Status Values Default
"type" R "static" | "dynamic"
"rigid bodies" R "on" | "off"
"load steps", "load" C static only; "gravity ramp" | "full"
"dt", "final time", "beta", "gamma" C dynamic only
"boundary conditions" → "min", "max" O [x, y, z] of "free" | "roller" | "fixed" every face free
"adaptivity" → "type" O "none" | "uniform" | "rigid body surface" "none"
"adaptivity" → "element size" C "rigid body surface" only
"adaptivity" → "region", "element size in region" O together, "rigid body surface" only no region
"rigid body surface placement" ¹ O "on" | "off" "off"
"rigid body boundary conditions" ¹ O list of "system", "point", "boundary conditions" the points' own
"boundary track" ¹ → "min", "max" O "type", "distance", "advance", "remove", each [x, y, z] no track

¹ Ignored in a stage with "rigid bodies": "off".

Full reference: Analysis stages →

Key Status Values Default
"contact" → "friction coefficient" R number ≥ 0
"tolerance" R number
"max newton iterations" R integer
"max linear iterations" O integer 100
"poor factor" R number
"ghost factor", "ghost factor mass" R numbers

Full reference: Contact → · Solver →

Key Status Values Default
"vtk", "csv" R "on" | "off"
"vtk directory", "vtk percent" C when "vtk": "on"
"csv directory", "csv percent" C when "csv": "on"
"vtk material point fields", "vtk rigid body fields" O list of field names every field
"csv material point fields", "csv rigid body fields" O list of field names every field

Full reference: Output →

How to read these pages

Every key on the reference pages is given one of four statuses:

  • Required - must be present; a missing one stops the analysis before it starts, naming the key, e.g. missing key "tolerance" (path: solver → tolerance).
  • Optional - can be left out, and the default is used.
  • Conditional - required only in the situation stated, e.g. "yield stress" for a "von mises" material.
  • Ignored - never read; can be kept as a label.

Details

Conventions
  • SI units: metres, seconds, kilograms, pascals. Angles in degrees.
  • Stress is tension positive.
  • Vectors are [x, y, z], with \(z\) vertical; plan quantities are [x, y].
  • Positions are global: points, anchors, tracked nodes and STL geometry share one frame.
  • Switches take "on" / "off", except the boundary track's "remove" ("yes" / "no").
  • Rigid-body systems, and the points in each, are numbered from 1 in file order.
The line_search keyword

MPM3S.non_linear_solve("input_data.json"; line_search = false) takes the full Newton-Raphson update every iteration, instead of the default Armijo line search. It is a keyword of the function, not a key of the file.