Skip to content
Beta.feb@modelscript/febio 10 diagnostic rules
Parser WASM GLR
Diagnostics 10 rules
DAE Arena Lowering
Simulation Native Solvers
Projections Modelica, STEP, OpenSCAD
Live ExampleArterialWallMooneyRivlin.feb

FEBio 4.0 Hyperelastic Soft-Tissue Biomechanics

Nonlinear finite element specification modeling uncoupled Mooney-Rivlin soft tissue under physiological intraluminal pressure.

Playground
Source (17 lines)
1<?xml version="1.0" encoding="UTF-8"?>
2<febio_spec version="4.0">
3  <Module type="solid"/>
4  <Control>
5    <analysis>STATIC</analysis>
6    <time_steps>20</time_steps>
7    <step_size>0.05</step_size>
8  </Control>
9  <Material>
10    <material id="1" name="ArterialMedia" type="Mooney-Rivlin">
11      <density>1060.0</density>
12      <c1>18.5e3</c1>
13      <c2>4.2e3</c2>
14      <k>2.5e6</k>
15    </material>
16  </Material>
17</febio_spec>
FEBio Hyperelastic Soft-Tissue Solver Pipeline
constitutive Newton equilibrium «mooney-rivlin» ArterialMedia «parameters» c1 = 18.5 kPa c2 = 4.2 kPa, k = 2.5 MPa «febio 4.0 static» SolidModule «model» dt = 0.05 (20 steps) Incompressible J ~ 1 «biomechanical response» CauchyStress «verification» stretch lambda = 1..1.4 strain energy W
Drag to pan · Click % to reset

FEBio & SOFA Soft-Tissue Biomechanics (.feb, .scn) ​

@modelscript/febio (languages/febio) provides native WebAssembly parsing, hyperelastic and biphasic poroelastic material stability verification, element Jacobian volume positivity checking, non-linear strain-energy and Cauchy stress evaluation, DAEBuilder lowering, and CalculiX .inp / Modelica projections for FEBio (febio_spec 3.0 / 4.0) soft-tissue biomechanics and SOFA Framework (.scn) real-time surgical simulation scenes.


Supported Extensions & Standards ​

ExtensionFormatDescription
.febFEBio SpecificationXML specification of Material, Mesh / Geometry, Boundary, Loads, Contact, and Step blocks
.scnSOFA Scene GraphSimulation Open Framework Architecture (Node, MechanicalObject, TetrahedronFEMForceField, CollisionPipeline)

Key Capabilities ​

1. Hyperelastic, Viscoelastic & Biphasic Constitutive Models ​

  • Parses and evaluates soft-tissue strain energy density functions W(C) across biological constitutive laws:
    • Neo-Hookean & Mooney-Rivlin: W=C1(I1−3)+C2(I2−3)+12K(ln⁡J)2
    • Ogden Hyperelastic: W=∑p=1Nμpαp(λ1αp+λ2αp+λ3αp−3)
    • Holmes-Mow & Biphasic Poroelastic: Articular cartilage fluid-solid mixture hydraulic permeability k and interstitial fluid pressure.
  • Enforces Drucker stability (μpαp>0), positive bulk/shear moduli, and positive element Jacobians (detJ>0).

2. CalculiX FEA, Modelica & DAE Lowering ​

  • Solves Principal stretches, Cauchy stresses, and strain energy densities (solveHyperelasticMechanics), exports to CalculiX / Abaqus .inp (febioToCalculixInp) and Modelica (febioToModelica), and lowers lumped compliance dynamics into DAEBuilder.

Pre-Flight Diagnostics ​

10 rules9 error1 warning

CodeRuleSeverityMessage
M9401febio-invalid-material-constanterrorNon-physical material constant <paramDesc> in material '<materialName>'.
M9402febio-inverted-element-jacobianerrorElement '<elemId>' (<elemType>) has non-positive Jacobian determinant det(J) = '<detJ>'.
M9403febio-unresolved-node-or-seterrorUnresolved <refKind> reference '<refId>' in '<contextName>'.
M9404febio-unconstrained-rigid-bodywarningModel '<modelTitle>' has no fixed or prescribed displacement boundary conditions to prevent rigid-body motion.
M9405febio-invalid-biphasic-permeabilityerrorInvalid biphasic/poroelastic parameter (<reason>) in material '<materialName>'.
M9406febio-invalid-time-steppererrorInvalid <Control> time-stepper configuration: time_steps='<timeSteps>', step_size='<stepSize>' (both must be > 0).
M9407febio-unresolved-material-iderrorUnresolved material ID '<matId>' referenced in '<contextName>'.
M9408febio-contact-penalty-invaliderrorContact interface '<contactName>' has invalid configuration: <detail>.
M9409febio-sofa-missing-mechanical-objecterrorSOFA <Node> '<nodeName>' contains '<<forceFieldType>>' without a '<MechanicalObject>' state container.
M9410febio-duplicate-entity-iderrorDuplicate <entityKind> identifier '<id>'.

Generated from languages/febio/src/lints/rules.ts. All languages →


CLI Usage ​

bash
# Inspect FEBio materials, mesh nodes/elements, and boundary conditions
msx febio inspect LiverHyperelastic.feb

# Validate Drucker hyperelastic stability and element Jacobian determinants
msx febio validate LiverHyperelastic.feb

# Solve hyperelastic strain energy and Cauchy stress response
msx febio solve LiverHyperelastic.feb

# Project FEBio mesh and materials to CalculiX/Abaqus .inp or Modelica
msx febio to-inp LiverHyperelastic.feb > LiverHyperelastic.inp
msx febio to-modelica LiverHyperelastic.feb > LiverHyperelastic.mo

Open-Core under the GNU AGPL v3 License; Enterprise Edition (ee/) under the ModelScript Enterprise License. • Pricing • Trademark Policy