pyfebio package

Submodules

pyfebio.boundary module

class pyfebio.boundary.BCLinearConstraint(*, type='linear constraint', node, dof, child_dof=[])

Bases: BaseXmlModel

child_dof: list[ChildDof]
dof: Literal['x', 'y', 'z', 'p']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node: int
type: Literal['linear constraint']
class pyfebio.boundary.BCNormalDisplacement(*, type='normal displacement', surface, scale, surface_hint=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

scale: Value
surface: str
surface_hint: Literal[0, 1]
type: Literal['normal displacement']
class pyfebio.boundary.BCPrescribedConcentration(*, type='prescribed concentration', node_set, dof, value, relative=0)

Bases: BaseXmlModel

Assign a prescribed concentration of a solute to a node set. Hint: dof should be a string of the form “c{solute id}” e.g. “c1”, “c2”, etc.

dof: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['prescribed concentration']
value: Value
class pyfebio.boundary.BCPrescribedDeformation(*, type='prescribed deformation', node_set, scale, F='1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0', relative=0)

Bases: BaseXmlModel

F: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
scale: Value
type: Literal['prescribed deformation']
class pyfebio.boundary.BCPrescribedDisplacement(*, type='prescribed displacement', node_set, dof, value, relative=0)

Bases: BaseXmlModel

dof: Literal['x', 'y', 'z']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['prescribed displacement']
value: Value
class pyfebio.boundary.BCPrescribedFluidPressure(*, type='prescribed fluid pressure', node_set, value, relative=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['prescribed fluid pressure']
value: Value
class pyfebio.boundary.BCPrescribedShellDisplacement(*, type='prescribed shell displacement', node_set, dof, value, relative=0)

Bases: BaseXmlModel

dof: Literal['sx', 'sy', 'sz']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['prescribed shell displacement']
value: Value
class pyfebio.boundary.BCRigid(*, type='rigid', name='rigid', node_set, rb)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
node_set: str
rb: str
type: Literal['rigid']
class pyfebio.boundary.BCRigidDeformation(*, type='rigid deformation', node_set, pos='0.0,0.0,0.0', rot, relative=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
pos: str
relative: Literal[0, 1]
rot: Value
type: Literal['rigid deformation']
class pyfebio.boundary.BCZeroConcentration(*, type='zero concentration', node_set, c_dof)

Bases: BaseXmlModel

Assign a zero concentration boundary condition for a solute to a node set. Hint: c_dof should be a string of the form “c{solute id}” e.g. “c1”, “c2”, etc.

c_dof: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['zero concentration']
class pyfebio.boundary.BCZeroDisplacement(*, type='zero displacement', node_set, x_dof=0, y_dof=0, z_dof=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['zero displacement']
x_dof: Literal[0, 1]
y_dof: Literal[0, 1]
z_dof: Literal[0, 1]
class pyfebio.boundary.BCZeroFluidPressure(*, type='zero fluid pressure', node_set)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['zero fluid pressure']
class pyfebio.boundary.BCZeroShellDisplacement(*, type='zero shell displacement', node_set, sx_dof=0, sy_dof=0, sz_dof=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
sx_dof: Literal[0, 1]
sy_dof: Literal[0, 1]
sz_dof: Literal[0, 1]
type: Literal['zero shell displacement']
class pyfebio.boundary.Boundary(*, all_bcs=[])

Bases: BaseXmlModel

add_bc(new_bc)
all_bcs: list[BCZeroDisplacement | BCZeroShellDisplacement | BCZeroFluidPressure | BCPrescribedDisplacement | BCPrescribedShellDisplacement | BCPrescribedFluidPressure | BCPrescribedDeformation | BCRigid | BCRigidDeformation | BCNormalDisplacement | BCZeroConcentration | BCPrescribedConcentration | BCLinearConstraint]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.boundary.ChildDof(*, node, dof, value)

Bases: BaseXmlModel

dof: Literal['x', 'y', 'z', 'p']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node: int
value: float
class pyfebio.boundary.MatchingOsmCoefficient(*, type='matching_osm_coeff', surface, ambient_pressure, ambient_osmolarity, shell_bottom=0)

Bases: BaseXmlModel

ambient_osmolarity: float
ambient_pressure: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

shell_bottom: Literal[0, 1]
surface: str
type: Literal['matching_osm_coef']
class pyfebio.boundary.Value(*, lc, text=1.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Union[float, str]

pyfebio.constraints module

class pyfebio.constraints.ConstraintInSituStretch(*, type='in-situ stretch', update=1, tolerance=0, min_iters=0, max_iters=-1, max_stretch=0, isochoric=1)

Bases: BaseXmlModel

isochoric: Literal[0, 1]
max_iters: int
max_stretch: Union[Literal[0], float]
min_iters: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tolerance: Union[Literal[0], float]
type: Literal['in-situ stretch']
update: Literal[0, 1]
class pyfebio.constraints.ConstraintPrestrain(*, type='prestrain', update=1, tolerance=0, min_iters=0, max_iters=-1)

Bases: BaseXmlModel

max_iters: int
min_iters: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tolerance: Union[Literal[0], float]
type: Literal['prestrain']
update: Literal[0, 1]
class pyfebio.constraints.ConstraintSymmetryPlane(*, type='symmetry plane', laugon=1, tol=0.1, penalty=1, rhs=0, minaug=0, maxaug=50)

Bases: BaseXmlModel

laugon: Literal[0, 1]
maxaug: int
minaug: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

penalty: float
rhs: float
tol: float
type: Literal['symmetry plane']
class pyfebio.constraints.Constraints(*, all_constraints=[])

Bases: BaseXmlModel

add_constraint(new_constraint)
all_constraints: list[ConstraintSymmetryPlane | ConstraintInSituStretch | ConstraintPrestrain]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pyfebio.contact module

class pyfebio.contact.Contact(*, all_contact_interfaces=[])

Bases: BaseXmlModel

add_contact(new_contact)
all_contact_interfaces: list[SlidingElastic | SlidingFacetOnFacet | SlidingNodeOnFacet | SlidingBiphasic | Sliding2 | ContactPotential | TiedElastic | TiedFacetOnFacet | TiedNodeOnFacet | TiedBiphasic]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.contact.ContactPotential(*, type='contact potential', name, surface_pair, kc=1e-06, p=4, check_intersections=0, R_in=-0.01, R_out=0.05, R0_min=0, w_tol=0, integration_rule='default')

Bases: BaseXmlModel

R0_min: Union[Literal[0], float]
R_in: float
R_out: float
check_intersections: Literal[0, 1]
integration_rule: Literal['default', 'higher-order']
kc: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
p: int
surface_pair: str
type: Literal['contact potential']
w_tol: Union[Literal[0], float]
class pyfebio.contact.Sliding2(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=1, knmult=1.0, seg_up=0, node_reloc=0, type='sliding2', ptol=0, pressure_penalty=1, symmetric_stiffness=1, smooth_aug=0, dual_proj=1)

Bases: SlidingBase

dual_proj: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pressure_penalty: float
ptol: Union[Literal[0], float]
search_radius: Union[Literal[0], float]
smooth_aug: int
symmetric_stiffness: Literal[0, 1]
type: Literal['sliding2']
class pyfebio.contact.SlidingBase(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=0, knmult=1.0, seg_up=0, node_reloc=0)

Bases: BaseXmlModel

auto_penalty: Literal[0, 1]
gaptol: Union[Literal[0], float]
knmult: float
laugon: Literal['PENALTY', 'AUGLAG']
maxaug: int
minaug: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
node_reloc: Literal[0, 1]
penalty: float
search_radius: Union[Literal[0], float]
search_tol: float
seg_up: int
surface_pair: str
tolerance: float
two_pass: Literal[0, 1]
update_penalty: Literal[0, 1]
class pyfebio.contact.SlidingBiphasic(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=1, knmult=1.0, seg_up=0, node_reloc=0, type='sliding-biphasic', ptol=0, pressure_penalty=1, symmetric_stiffness=1, fric_coeff=0, contact_frac=0.0, smooth_aug=0, smooth_fls=0, flip_primary=0, flip_secondary=0, shell_bottom_primary=0, shell_bottom_secondary=0)

Bases: SlidingBase

contact_frac: float
flip_primary: Literal[0, 1]
flip_secondary: Literal[0, 1]
fric_coeff: Union[Literal[0], float]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pressure_penalty: float
ptol: Union[Literal[0], float]
search_radius: Union[Literal[0], float]
shell_bottom_primary: Literal[0, 1]
shell_bottom_secondary: Literal[0, 1]
smooth_aug: int
smooth_fls: int
symmetric_stiffness: Literal[0, 1]
type: Literal['sliding-biphasic']
class pyfebio.contact.SlidingElastic(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=1, knmult=1.0, seg_up=0, node_reloc=0, type='sliding-elastic', symmetric_stiffness=1, smooth_aug=0, tension=0, fric_coeff=0, flip_primary=0, flip_secondary=0, shell_bottom_primary=0, shell_bottom_secondary=0, offset=0)

Bases: SlidingBase

flip_primary: Literal[0, 1]
flip_secondary: Literal[0, 1]
fric_coeff: Union[Literal[0], float]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

offset: Union[Literal[0], float]
search_radius: Union[Literal[0], float]
shell_bottom_primary: Literal[0, 1]
shell_bottom_secondary: Literal[0, 1]
smooth_aug: int
symmetric_stiffness: Literal[0, 1]
tension: Literal[0, 1]
type: Literal['sliding-elastic']
class pyfebio.contact.SlidingFacetOnFacet(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=0, knmult=1.0, seg_up=0, node_reloc=0, type='sliding-facet-on-facet', smooth_aug=0)

Bases: SlidingBase

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

smooth_aug: int
type: Literal['sliding-facet-on-facet']
class pyfebio.contact.SlidingNodeOnFacet(*, name=None, surface_pair, laugon='PENALTY', two_pass=0, penalty=1.0, auto_penalty=0, update_penalty=0, tolerance=0.01, gaptol=0, minaug=0, maxaug=10, search_tol=0.01, search_radius=0, knmult=1.0, seg_up=0, node_reloc=0, type='sliding-node-on-facet', fric_coeff=0, fric_penalty=0, ktmult=0)

Bases: SlidingBase

fric_coeff: Union[Literal[0], float]
fric_penalty: Union[Literal[0], float]
ktmult: Union[Literal[0], float]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['sliding-node-on-facet']
class pyfebio.contact.TiedBase(*, name, surface_pair, laugon='PENALTY', tolerance=0.1, penalty=1, minaug=0, maxaug=10)

Bases: BaseXmlModel

laugon: Literal['PENALTY', 'AUGLAG']
maxaug: int
minaug: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
penalty: float
surface_pair: str
tolerance: float
class pyfebio.contact.TiedBiphasic(*, name, surface_pair, laugon='PENALTY', tolerance=0.1, penalty=1, minaug=0, maxaug=10, type='tied-biphasic', gaptol=-1, ptol=-1, auto_penalty=0, update_penalty=0, two_pass=0, search_tol=0.01, search_radius=1, knmult=1, pressure_penalty=1, symmetric_stiffness=1)

Bases: TiedBase

auto_penalty: Literal[0, 1]
gaptol: float
knmult: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pressure_penalty: float
ptol: float
search_radius: float
search_tol: float
symmetric_stiffness: Literal[0, 1]
two_pass: Literal[0, 1]
type: Literal['tied-biphasic']
update_penalty: Literal[0, 1]
class pyfebio.contact.TiedElastic(*, name, surface_pair, laugon='PENALTY', tolerance=0.1, penalty=1, minaug=0, maxaug=10, type='tied-elastic', auto_penalty=0, update_penalty=0, two_pass=0, knmult=1, search_tol=0.01, search_radius=1, gaptol=-1, symmetric_stiffness=1, flip_primary=0, flip_secondary=0)

Bases: TiedBase

auto_penalty: Literal[0, 1]
flip_primary: Literal[0, 1]
flip_secondary: Literal[0, 1]
gaptol: float
knmult: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

search_radius: float
search_tol: float
symmetric_stiffness: Literal[0, 1]
two_pass: Literal[0, 1]
type: Literal['tied-elastic']
update_penalty: Literal[0, 1]
class pyfebio.contact.TiedFacetOnFacet(*, name, surface_pair, laugon='PENALTY', tolerance=0.01, penalty=1, minaug=0, maxaug=10, type='tied-facet-on-facet', search_tolerance=0.0001, gap_offset=0)

Bases: TiedBase

gap_offset: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

search_tolerance: float
tolerance: float
type: Literal['tied-facet-on-facet']
class pyfebio.contact.TiedNodeOnFacet(*, name, surface_pair, laugon='PENALTY', tolerance=0.01, penalty=1, minaug=0, maxaug=10, type='tied-node-on-facet', search_tolerance=0.0001, offset_shells=0, max_distance=0, special=1, node_reloc=0)

Bases: TiedBase

max_distance: Union[Literal[0], float]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_reloc: Literal[0, 1]
offset_shells: Literal[0, 1]
search_tolerance: float
special: Literal[0, 1]
tolerance: float
type: Literal['tied-node-on-facet']

pyfebio.control module

class pyfebio.control.BFGSMethod(*, type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0)

Bases: BaseXmlModel

cmax: float
cycle_buffer: Literal[0, 1]
max_buffer_size: int
max_ups: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['BFGS']
class pyfebio.control.BiphasicSolver(*, symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='biphasic', dtol=0.001, etol=0.01, rtol=0, ptol=0.01, ctol=0, mixed_formulation=0)

Bases: _BaseSolver

ctol: float
dtol: float
etol: float
mixed_formulation: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

ptol: float
rtol: float
type: Literal['biphasic']
class pyfebio.control.BroydenMethod(*, type='Broyden', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0)

Bases: BaseXmlModel

cmax: float
cycle_buffer: Literal[0, 1]
max_buffer_size: int
max_ups: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Broyden']
class pyfebio.control.CGSolidSolver(*, type='CG-solid', symmetric_stiffness='non-symmetric', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=1e-15, lsiter=10, dtol=1e-06, etol=0.01, rtol=0, min_residual=1e-20, beta=0.25, gamma=0.5, cgmethod=0, preconditioner=0)

Bases: BaseXmlModel

beta: float
cgmethod: Literal[0, 1]
dtol: float
equation_order: Literal['default', 'reverse', 'febio2']
equation_scheme: Literal['staggered', 'block']
etol: float
gamma: float
lsiter: int
lsmin: float
lstol: float
min_residual: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

optimize_bw: Literal[0, 1]
preconditioner: Literal[0, 1]
rtol: float
symmetric_stiffness: Literal['symmetric', 'non-symmetric', 'symmetric-structure', 'preferred']
type: Literal['CG-solid']
class pyfebio.control.Control(*, analysis='STATIC', time_steps=10, step_size=0.1, plot_zero_state=0, plot_range='0,-1', plot_level='PLOT_MAJOR_ITRS', output_level='OUTPUT_MAJOR_ITRS', plot_stride=1, output_stride=1, adaptor_re_solve=1, time_stepper=TimeStepper(type='default', max_retries=5, opt_iter=11, dtmin=0.0, dtmax=TimeStepValue(lc=None, text=1.0), aggressiveness=0, cutback=0.5, dtforce=0), solver=SolidSolver(symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='solid', dtol=0.001, etol=0.01, rtol=0, rhoi=-2, alpha=1, beta=0.25, gamma=0.5, logSolve=0, arc_length=0, arc_length_scale=0))

Bases: BaseXmlModel

adaptor_re_solve: int
analysis: Literal['STATIC', 'DYNAMIC', 'STEADY-STATE', 'TRANSIENT']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

output_level: Literal['OUTPUT_NEVER', 'OUTPUT_MAJOR_ITRS', 'OUTPUT_MINOR_ITRS', 'OUTPUT_MUST_POINTS', 'OUTPUT_FINAL']
output_stride: int
plot_level: Literal['PLOT_NEVER', 'PLOT_MAJOR_ITRS', 'PLOT_MINOR_ITRS', 'PLOT_MUST_POINTS']
plot_range: str
plot_stride: int
plot_zero_state: Literal[0, 1]
solver: SolidSolver | BiphasicSolver | MultiphasicSolver | ExplicitSolver | CGSolidSolver
step_size: float
time_stepper: TimeStepper | None
time_steps: int
class pyfebio.control.ExplicitSolver(*, type='explicit-solid', mass_lumping=1, dyn_damping=1, mixed_formulation=None)

Bases: BaseXmlModel

dyn_damping: Union[Literal[1], float]
mass_lumping: Literal[1, 2]
mixed_formulation: Optional[Literal[0, 1]]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['explicit-solid']
class pyfebio.control.FullNewtonMethod(*, type='full Newton')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['full Newton']
class pyfebio.control.JFNKMethod(*, type='JFNK', jfnk_eps=1e-06)

Bases: BaseXmlModel

jfnk_eps: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['JFNK']
class pyfebio.control.LinearSolver(*, type='pardiso')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['pardiso', 'mkl_dss']
class pyfebio.control.ModifiedNewtonMethod(*, type='modified Newton')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['modified Newton']
class pyfebio.control.MultiphasicFSISolver(*, symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='multiphasic', dtol=0.001, vtol=0.001, ftol=0.001, etol=0.01, rtol=0.001, ptol=0.01, ctol=0.01, rhoi=0, predictor=0, min_volume_ratio=0, order=2, force_positive_concentrations=1)

Bases: _BaseSolver

ctol: float
dtol: float
etol: float
force_positive_concentrations: Literal[0, 1]
ftol: float
min_volume_ratio: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

order: Literal[1, 2]
predictor: Literal[0, 1]
ptol: float
rhoi: float
rtol: float
type: Literal['multiphasic']
vtol: float
class pyfebio.control.MultiphasicSolver(*, symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='multiphasic', dtol=0.001, etol=0.01, rtol=0, ptol=0.01, ctol=0.01, force_positive_concentrations=1)

Bases: _BaseSolver

ctol: float
dtol: float
etol: float
force_positive_concentrations: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

ptol: float
rtol: float
type: Literal['multiphasic']
class pyfebio.control.SolidSolver(*, symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='solid', dtol=0.001, etol=0.01, rtol=0, rhoi=-2, alpha=1, beta=0.25, gamma=0.5, logSolve=0, arc_length=0, arc_length_scale=0)

Bases: _BaseSolver

alpha: float
arc_length: int
arc_length_scale: float
beta: float
dtol: float
etol: float
gamma: float
logSolve: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rhoi: float
rtol: float
type: Literal['solid']
class pyfebio.control.TimeStepValue(*, lc=None, text=1.0)

Bases: BaseXmlModel

lc: int | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class pyfebio.control.TimeStepper(*, type='default', max_retries=5, opt_iter=11, dtmin=0.0, dtmax=TimeStepValue(lc=None, text=1.0), aggressiveness=0, cutback=0.5, dtforce=0)

Bases: BaseXmlModel

aggressiveness: Literal[0, 1]
cutback: float
dtforce: Literal[0, 1]
dtmax: TimeStepValue
dtmin: float
max_retries: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

opt_iter: int
type: Literal['default']

pyfebio.discrete module

class pyfebio.discrete.Discrete(*, discrete_materials=[], discrete_elements=[])

Bases: BaseXmlModel

add_discrete_element(new_element)
add_discrete_material(new_material)
discrete_elements: list[DiscreteEntry]
discrete_materials: list[NonlinearSpring | Spring | TensionOnlyLinearSpring | HillElement | ExperimentalSpring]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.discrete.DiscreteEntry(*, dmat, discrete_set)

Bases: BaseXmlModel

discrete_set: str
dmat: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.discrete.ExperimentalSpring(*, id, name, type='experimental spring', E=1.0, sM=1.0, sm=2.0)

Bases: BaseXmlModel

E: float
id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
sM: Union[float, float]
sm: Union[float, float]
type: Literal['experimental spring']
class pyfebio.discrete.HillElement(*, id, name, type='Hill', Vmax=1.0, ac=0.0, Fmax=1.0, Ksh=1.0, Lmax=1.0, L0=0, Sv=None, Ftl=None, Fvl=None)

Bases: BaseXmlModel

Fmax: float
Ftl: Scale | None
Fvl: Scale | None
Ksh: float
L0: Union[Literal[0], float]
Lmax: float
Sv: Scale | None
Vmax: float
ac: float
id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['Hill']
class pyfebio.discrete.NonlinearSpring(*, id, name, type='nonlinear spring', scale=1.0, measure='elongation', force)

Bases: BaseXmlModel

force: NonlinearSpringForce
id: int
measure: Literal['elongation', 'strain', 'stretch']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
scale: float
type: Literal['nonlinear spring']
class pyfebio.discrete.NonlinearSpringForce(*, type='math', math)

Bases: BaseXmlModel

math: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['math']
class pyfebio.discrete.Scale(*, type=None, value=None, interpolate=None, points=None)

Bases: BaseXmlModel

All parameters are set to None initially, to handle all customization. We add a validitor to ensure consistency.

interpolate: Optional[Literal['linear', 'smooth']]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

points: ScalePoints | None
type: Optional[Literal['point', 'const']]
validate_options()
value: float | None
class pyfebio.discrete.ScalePoints(*, pt=FieldInfo(annotation=NoneType, required=False, default_factory=list))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pt: list[str]
class pyfebio.discrete.Spring(*, id, name, type='linear spring', E=1.0)

Bases: BaseXmlModel

E: float
id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: str
class pyfebio.discrete.TensionOnlyLinearSpring(*, id, name, type='tension-only linear spring', E=1.0)

Bases: BaseXmlModel

E: float
id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['tension-only linear spring']

pyfebio.globals module

class pyfebio.globals.Constants(*, T=298, P=0, R=8.314e-06, Fc=9.6485e-05)

Bases: BaseXmlModel

Fc: float
P: float
R: float
T: float
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.globals.Globals(*, constants=Constants(T=298, P=0, R=8.314e-06, Fc=9.6485e-05), solutes=None, solid_bound_molecules=None)

Bases: BaseXmlModel

constants: Constants
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

solid_bound_molecules: SolidBoundMolecules | None
solutes: Solutes | None
class pyfebio.globals.SolidBoundMolecule(*, id, name=None, charge_number=1, molar_mass=1.0, density=1.0)

Bases: BaseXmlModel

charge_number: int
density: float
id: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

molar_mass: float
name: str | None
class pyfebio.globals.SolidBoundMolecules(*, solid_bound=[])

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

solid_bound: list[SolidBoundMolecule]
class pyfebio.globals.Solute(*, id, name=None, charge_number=1, molar_mass=1.0, density=1.0)

Bases: BaseXmlModel

charge_number: int
density: float
id: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

molar_mass: float
name: str | None
class pyfebio.globals.Solutes(*, solute=[])

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

solute: list[Solute]

pyfebio.include module

class pyfebio.include.Include(*, text)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str

pyfebio.initial module

class pyfebio.initial.Initial(*, all_initial_conditions=[])

Bases: BaseXmlModel

add_initial_condition(new_initial_condition)
all_initial_conditions: list[InitialVelocity | InitialPrestrain | InitialConcentration | InitialFluidPressure]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.initial.InitialConcentration(*, type='initial concentration', node_set, value, dof)

Bases: BaseXmlModel

dof: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['initial concentration']
value: float
class pyfebio.initial.InitialFluidPressure(*, type='initial fluid pressure', node_set, value)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['initial fluid pressure']
value: float
class pyfebio.initial.InitialPrestrain(*, type='prestrain', node_set, init=1, reset=1)

Bases: BaseXmlModel

init: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
reset: Literal[0, 1]
type: Literal['prestrain']
class pyfebio.initial.InitialVelocity(*, type, node_set, value='0.0,0.0,0.0')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
type: Literal['velocity', 'shell_velocity', 'initial fluid velocity']
value: str

pyfebio.loaddata module

class pyfebio.loaddata.CurvePoints(*, points=[])

Bases: BaseXmlModel

add_point(new_point)
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

points: list[str]
class pyfebio.loaddata.LoadCurve(*, id, type='loadcurve', interpolate='LINEAR', extend='CONSTANT', points)

Bases: BaseXmlModel

extend: Literal['CONSTANT', 'EXTRAPOLATE', 'REPEAT', 'REPEAT OFFSET']
id: int
interpolate: Literal['LINEAR', 'STEP', 'SMOOTH', 'SMOOTH STEP']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

points: CurvePoints
type: Literal['loadcurve']
class pyfebio.loaddata.LoadData(*, load_controllers=[])

Bases: BaseXmlModel

add_load_curve(new_load_curve)
add_math_controller(new_math_controller)
add_math_interval_controller(new_math_interval_controller)
add_pid_controller(new_pid_controller)
load_controllers: list[LoadCurve | PIDController | MathController | MathIntervalController]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.loaddata.MathController(*, id, type='math', math)

Bases: BaseXmlModel

id: int
math: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['math']
class pyfebio.loaddata.MathIntervalController(*, id, type='math-interval', math, interval='0.0,1.0', left_extend='constant', right_extend='constant')

Bases: BaseXmlModel

id: int
interval: str
left_extend: Literal['zero', 'constant', 'repeat']
math: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

right_extend: Literal['zero', 'constant', 'repeat']
type: Literal['math-interval']
class pyfebio.loaddata.PIDController(*, id, type='PID', var, target, Kp, Kd, Ki)

Bases: BaseXmlModel

Kd: float
Ki: float
Kp: float
id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

target: float
type: Literal['PID']
var: str

pyfebio.loads module

class pyfebio.loads.CentrifugalBodyForce(*, type='centrifugal', angular_speed=0.0, rotation_axis='0.0,0.0,1.0', rotation_center='0.0,0.0,0.0')

Bases: BaseXmlModel

angular_speed: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rotation_axis: str
rotation_center: str
type: Literal['centrifugal']
class pyfebio.loads.ConstantBodyForce(*, type='const', x=Scale(lc=None, text=0.0), y=Scale(lc=None, text=0.0), z=Scale(lc=None, text=9.81))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['const']
x: Scale
y: Scale
z: Scale
class pyfebio.loads.FluidFlux(*, type='fluidflux', surface, flux=Scale(lc=1, text=0.0001), linear=0, mixture=1)

Bases: BaseXmlModel

flux: Scale
linear: Literal[0, 1]
mixture: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

surface: str
type: Literal['fluidflux']
class pyfebio.loads.FluidPressure(*, type='fluid pressure', surface, pressure=Scale(lc=1, text=0.1))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pressure: Scale
surface: str
type: Literal['fluid pressure']
class pyfebio.loads.Loads(*, all_surface_loads=[], all_nodal_loads=[], all_body_loads=[])

Bases: BaseXmlModel

add_body_load(new_load)
add_nodal_load(new_load)
add_surface_load(new_load)
all_body_loads: list[ConstantBodyForce | NonConstantBodyForce | CentrifugalBodyForce | MovingFrame | MassDamping]
all_nodal_loads: list[NodalLoad | NodalForce | NodalTargetForce | NodalFluidFlux]
all_surface_loads: list[TractionLoad | PressureLoad | FluidFlux | FluidPressure]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.loads.MassDamping(*, type='mass damping', C=0.0)

Bases: BaseXmlModel

C: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['mass damping']
class pyfebio.loads.MovingFrame(*, type='moving frame', wx=Scale(lc=None, text=0.0), wy=Scale(lc=None, text=0.0), wz=Scale(lc=None, text=0.0), ax=Scale(lc=None, text=0.0), ay=Scale(lc=None, text=0.0), az=Scale(lc=None, text=0.0))

Bases: BaseXmlModel

ax: Scale
ay: Scale
az: Scale
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['moving frame']
wx: Scale
wy: Scale
wz: Scale
class pyfebio.loads.NodalFluidFlux(*, type='nodal fluidflux', node_set, relative=0, value)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['nodal fluidflux']
value: Scale
class pyfebio.loads.NodalForce(*, type='nodal_force', node_set, relative=0, value=Scale(lc=1, text='0.0,0.0,1.0'))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
type: Literal['nodal_force']
value: Scale
class pyfebio.loads.NodalLoad(*, type='nodal_load', node_set, relative=0, dof='z', scale=Scale(lc=1, text=1.0))

Bases: BaseXmlModel

dof: Literal['x', 'y', 'z', 'p']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
relative: Literal[0, 1]
scale: Scale
type: Literal['nodal_load']
class pyfebio.loads.NodalTargetForce(*, type='nodal_target_force', node_set, force='0.0,0.0,1.0', scale=Scale(lc=1, text=1.0))

Bases: BaseXmlModel

force: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_set: str
scale: Scale
type: Literal['nodal_target_force']
class pyfebio.loads.NonConstantBodyForce(*, type='non-const', x=ScaleMath(lc=None, text=0.0), y=ScaleMath(lc=None, text=0.0), z=ScaleMath(lc=None, text='9.81*Z'))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['non-const']
x: ScaleMath
y: ScaleMath
z: ScaleMath
class pyfebio.loads.PressureLoad(*, type='pressure', surface, symmetric_stiffness=0, linear=0, shell_bottom=0, pressure=Scale(lc=1, text=1.0))

Bases: BaseXmlModel

linear: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pressure: Scale
shell_bottom: Literal[0, 1]
surface: str
symmetric_stiffness: Literal[0, 1]
type: Literal['pressure']
class pyfebio.loads.Scale(*, lc=None, text=1.0)

Bases: BaseXmlModel

lc: int | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Union[float, str]
class pyfebio.loads.ScaleMath(*, lc=None, text=0.0)

Bases: BaseXmlModel

lc: int | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float | str
class pyfebio.loads.TractionLoad(*, type='traction', surface, scale=Scale(lc=1, text=1.0), traction='0,0,1')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

scale: Scale
surface: str
traction: str
type: Literal['traction']

pyfebio.material module

class pyfebio.material.ActiveContraction(*, type='active contraction', ascl=DynamicMaterialParameter(type=None, lc=1, text=1), ca0=MaterialParameter(type=None, text=4.35), beta=MaterialParameter(type=None, text=4.75), l0=MaterialParameter(type=None, text=1.58), refl=MaterialParameter(type=None, text=2.04))

Bases: BaseXmlModel

ascl: DynamicMaterialParameter
beta: MaterialParameter
ca0: MaterialParameter
l0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

refl: MaterialParameter
type: Literal['active contraction']
class pyfebio.material.ArrudaBoyce(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Arruda-Boyce unconstrained', ksi=MaterialParameter(type=None, text=10), N=MaterialParameter(type=None, text=5), n_term=3, kappa=MaterialParameter(type=None, text=1))

Bases: MaterialBase

N: MaterialParameter
kappa: MaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

n_term: int
type: Literal['Arruda-Boyce unconstrained']
class pyfebio.material.ArrudaBoyceUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Arruda-Boyce', mu=MaterialParameter(type=None, text=0.09), N=MaterialParameter(type=None, text=26.5), k=MaterialParameter(type=None, text=100))

Bases: MaterialBase

N: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
type: Literal['Arruda-Boyce']
class pyfebio.material.BiphasicMaterial(*, name=None, id=None, type='biphasic', fluid_density=MaterialParameter(type=None, text=1e-06), phi0=MaterialParameter(type=None, text=0.2), tau=None, solid=NeoHookean(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3)), permeability=ConstantIsoPerm(type='perm-const-iso', perm=MaterialParameter(type=None, text=0.001)), solvent_supply=None, active_supply=None)

Bases: MaterialBaseNoDensity

active_supply: MaterialParameter | None
fluid_density: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

permeability: ConstantIsoPerm | ExponentialIsoPerm | HolmesMowPerm | RefIsoPerm | RefOrthoPerm | RefTransIsoPerm
phi0: MaterialParameter
solid: ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | SolidMixture | SolidMixtureUC
solvent_supply: SolventSupply | None
tau: Optional[float]
type: Literal['biphasic']
class pyfebio.material.BiphasicSoluteMaterial(*, name=None, id=None, type='biphasic-solute', fluid_density=MaterialParameter(type=None, text=1e-06), phi0=MaterialParameter(type=None, text=0.2), solid=NeoHookean(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3)), permeability=ConstantIsoPerm(type='perm-const-iso', perm=MaterialParameter(type=None, text=0.001)), osmotic_coefficient=OsmoticCoefficientConst(type='osm-coef-const', osmcoef=MaterialParameter(type=None, text=1)), solvent_supply=None, solute=None)

Bases: MaterialBaseNoDensity

add_solute(new_solute)
fluid_density: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

osmotic_coefficient: OsmoticCoefficientConst | OsmoticCoefficientManning
permeability: ConstantIsoPerm | ExponentialIsoPerm | HolmesMowPerm | RefIsoPerm | RefOrthoPerm | RefTransIsoPerm
phi0: MaterialParameter
solid: ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | SolidMixture | SolidMixtureUC
solute: list[Solute] | None
solvent_supply: SolventSupply | None
type: Literal['biphasic-solute']
class pyfebio.material.CFDCircular(*, type='circular')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['circular']
class pyfebio.material.CFDEllipsoidal(*, type='ellipsoidal', spa=MaterialParameter(type=None, text='1.0,1.0,1.0'))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

spa: MaterialParameter
type: Literal['ellipsoidal']
class pyfebio.material.CFDElliptical(*, type='elliptical', spa1=MaterialParameter(type=None, text=1), spa2=MaterialParameter(type=None, text=1))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

spa1: MaterialParameter
spa2: MaterialParameter
type: Literal['elliptical']
class pyfebio.material.CFDSpherical(*, type='spherical')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['spherical']
class pyfebio.material.CFDVonMises2d(*, type='von-Mises-2d', b=MaterialParameter(type=None, text=0.5))

Bases: BaseXmlModel

b: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['von-Mises-2d']
class pyfebio.material.CFDVonMises3d(*, type='von-Mises-3d', b=MaterialParameter(type=None, text=0.5))

Bases: BaseXmlModel

b: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['von-Mises-3d']
class pyfebio.material.CarterHayes(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Carter-Hayes', E0=MaterialParameter(type=None, text=10000), rho0=MaterialParameter(type=None, text=1), gamma=MaterialParameter(type=None, text=2), v=MaterialParameter(type=None, text=0.3), sbm=MaterialParameter(type=None, text=1))

Bases: MaterialBase

E0: MaterialParameter
gamma: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rho0: MaterialParameter
sbm: MaterialParameter
type: Literal['Carter-Hayes']
v: MaterialParameter
class pyfebio.material.CellGrowth(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='cell growth', phir=DynamicMaterialParameter(type=None, lc=1, text=10000), cr=DynamicMaterialParameter(type=None, lc=1, text=1), ce=MaterialParameter(type=None, text=300))

Bases: MaterialBase

ce: MaterialParameter
cr: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phir: MaterialParameter
type: Literal['cell growth']
class pyfebio.material.ConstantIsoPerm(*, type='perm-const-iso', perm=MaterialParameter(type=None, text=0.001))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm: MaterialParameter
type: Literal['perm-const-iso']
class pyfebio.material.ContinuousFiberDistribution(*, type='continuous fiber distribution', fibers=FiberNaturalNeoHookean(type='fiber-natural-NH', ksi=MaterialParameter(type=None, text=1), lam0=MaterialParameter(type=None, text=1), fiber=None), distribution=CFDSpherical(type='spherical'), scheme=GaussKronrodTrapezoidalIntegration(type='fibers-3d-gkt', nph=7, nth=31), mat_axis=None)

Bases: BaseXmlModel

distribution: CFDCircular | CFDSpherical | CFDVonMises3d | CFDVonMises2d | CFDEllipsoidal
fibers: FiberNeoHookean | FiberNaturalNeoHookean | FiberToeLinear | FiberEntropyChain | FiberExponentialPower | FiberExponentialLinear | FiberExponentialPowerLinear
mat_axis: MaterialAxisVector | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

scheme: GaussKronrodTrapezoidalIntegration | FiniteElementIntegration | TrapezoidalRuleIntegration
type: Literal['continuous fiber distribution']
class pyfebio.material.ContinuousFiberDistributionUC(*, type='continuous fiber distribution uncoupled', fibers=FiberToeLinearUC(type='fiber-pow-linear-uncoupled', E=MaterialParameter(type=None, text=1), beta=MaterialParameter(type=None, text=2), lam0=MaterialParameter(type=None, text=1.01), fiber=None), distribution=CFDSpherical(type='spherical'), scheme=GaussKronrodTrapezoidalIntegration(type='fibers-3d-gkt', nph=7, nth=31), mat_axis=None)

Bases: BaseXmlModel

distribution: CFDCircular | CFDSpherical | CFDVonMises3d | CFDVonMises2d | CFDEllipsoidal
fibers: FiberToeLinearUC | FiberKiousisUC | FiberExponentialPowerUC | FiberExponentialLinearUC | FiberEntropyChainUC
mat_axis: MaterialAxisVector | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

scheme: GaussKronrodTrapezoidalIntegration | FiniteElementIntegration | TrapezoidalRuleIntegration
type: Literal['continuous fiber distribution uncoupled']
class pyfebio.material.CoupledMooneyRivlin(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='coupled Mooney-Rivlin', c1=MaterialParameter(type=None, text=10), c2=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=100))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
k: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['coupled Mooney-Rivlin']
class pyfebio.material.CoupledVerondaWestmann(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='coupled Veronda-Westmann', c1=MaterialParameter(type=None, text=10), c2=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=100))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
k: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['coupled Veronda-Westmann']
class pyfebio.material.CubicCLE(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='cubic CLE', lp1=MaterialParameter(type=None, text=13.01), lm1=MaterialParameter(type=None, text=0.49), l2=MaterialParameter(type=None, text=0.66), mu=MaterialParameter(type=None, text=0.16))

Bases: MaterialBase

l2: MaterialParameter
lm1: MaterialParameter
lp1: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
type: Literal['cubic CLE']
class pyfebio.material.Diffusivity(*, name='Diffusivity', type='diff-const-iso', free_diff=MaterialParameter(type=None, text=1), diff=MaterialParameter(type=None, text=0.001))

Bases: BaseXmlModel

diff: MaterialParameter
free_diff: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['diff-const-iso']
class pyfebio.material.DonnanEquilibrium(*, type='Donnan equilibrium', phiw0=MaterialParameter(type=None, text=0.8), cF0=DynamicMaterialParameter(type=None, lc=1, text=1), bosm=MaterialParameter(type=None, text=0.8))

Bases: BaseXmlModel

bosm: MaterialParameter
cF0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phiw0: MaterialParameter
type: Literal['Donnan equilibrium']
class pyfebio.material.DynamicMaterialParameter(*, type=None, lc=1, text)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: int | float | str
type: Optional[Literal['map', 'math']]
class pyfebio.material.EllipsoidalFiberDistribution(*, type='ellipsoidal fiber distribution', ksi=MaterialParameter(type=None, text='10,12,15'), beta=MaterialParameter(type=None, text='2.5,3,3'))

Bases: BaseXmlModel

beta: MaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['ellipsoidal fiber distribution']
class pyfebio.material.EllipsoidalFiberDistributionDonnanEquilibrium(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='EFD Donnan equilibrium', phiw0=MaterialParameter(type=None, text=0.8), cF0=DynamicMaterialParameter(type=None, lc=1, text=0.3), bosm=MaterialParameter(type=None, text=300), beta=MaterialParameter(type=None, text='2.5,3.0,3.0'), ksi=MaterialParameter(type=None, text='1.0,1.0,1.0'))

Bases: MaterialBase

beta: MaterialParameter
bosm: MaterialParameter
cF0: DynamicMaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phiw0: MaterialParameter
type: Literal['EFD Donnan equilibrium']
class pyfebio.material.EllipsoidalFiberDistributionMooneyRivlinUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='EFD Mooney-Rivlin', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0), beta=MaterialParameter(type=None, text='4.5,4.5,4.5'), ksi=MaterialParameter(type=None, text='1,1,1'), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

beta: MaterialParameter
c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['EFD Mooney-Rivlin']
class pyfebio.material.EllipsoidalFiberDistributionNeoHookean(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='EFD neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3), beta=MaterialParameter(type=None, text='2.5,3.0,3.0'), ksi=MaterialParameter(type=None, text='1.0,1.0,1.0'))

Bases: MaterialBase

E: MaterialParameter
beta: MaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['EFD neo-Hookean']
v: MaterialParameter
class pyfebio.material.EllipsoidalFiberDistributionUC(*, name=None, id=None, type='EFD uncoupled', ksi=MaterialParameter(type=None, text='10,12,15'), beta=MaterialParameter(type=None, text='2.5,3,3'))

Bases: MaterialBaseNoDensity

beta: MaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['EFD uncoupled']
class pyfebio.material.EllipsoidalFiberDistributionVerondaWestmannUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='EFD Veronda-Westmann', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0.5), beta=MaterialParameter(type=None, text='4.5,4.5,4.5'), ksi=MaterialParameter(type=None, text='1,1,1'), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

beta: MaterialParameter
c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['EFD Veronda-Westmann']
class pyfebio.material.ExponentialIsoPerm(*, type='perm-exp-iso', perm=MaterialParameter(type=None, text=0.001), M=MaterialParameter(type=None, text=1.5))

Bases: BaseXmlModel

M: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm: MaterialParameter
type: Literal['perm-exp-iso']
class pyfebio.material.FiberEntropyChain(*, type='fiber-entropy-chain', ksi=MaterialParameter(type=None, text=1), N=MaterialParameter(type=None, text=2), n_term=MaterialParameter(type=None, text=3), fiber=None)

Bases: BaseXmlModel

N: MaterialParameter
fiber: FiberVector | FiberLocal | None
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

n_term: MaterialParameter
type: str
class pyfebio.material.FiberEntropyChainUC(*, type='uncoupled fiber-entropy-chain', ksi=MaterialParameter(type=None, text=1), N=MaterialParameter(type=None, text=2), n_term=MaterialParameter(type=None, text=4), fiber=None)

Bases: BaseXmlModel

N: MaterialParameter
fiber: FiberVector | FiberLocal | None
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

n_term: MaterialParameter
type: str
class pyfebio.material.FiberExponentialLinear(*, type='fiber-exp-linear', c3=MaterialParameter(type=None, text=0), c4=MaterialParameter(type=None, text=43), c5=MaterialParameter(type=None, text=3), lam0=MaterialParameter(type=None, text=1.05), fiber=None)

Bases: BaseXmlModel

c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberExponentialLinearUC(*, type='uncoupled fiber-exp-linear', c3=MaterialParameter(type=None, text=0), c4=MaterialParameter(type=None, text=43), c5=MaterialParameter(type=None, text=3), lam0=MaterialParameter(type=None, text=1.05), fiber=None)

Bases: BaseXmlModel

c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberExponentialPower(*, type='fiber-exp-pow', ksi=MaterialParameter(type=None, text=5), alpha=MaterialParameter(type=None, text=20), beta=MaterialParameter(type=None, text=2), lam0=MaterialParameter(type=None, text=1), fiber=None)

Bases: BaseXmlModel

alpha: MaterialParameter
beta: MaterialParameter
fiber: FiberVector | FiberLocal | None
ksi: MaterialParameter
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberExponentialPowerLinear(*, type='fiber-exp-pow-linear', E=MaterialParameter(type=None, text=1080), alpha=MaterialParameter(type=None, text=1400), beta=MaterialParameter(type=None, text=2.73), lam0=MaterialParameter(type=None, text=1.01), fiber=None)

Bases: BaseXmlModel

E: MaterialParameter
alpha: MaterialParameter
beta: MaterialParameter
fiber: FiberVector | FiberLocal | None
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberExponentialPowerUC(*, type='fiber-exp-pow-uncoupled', ksi=MaterialParameter(type=None, text=5), alpha=MaterialParameter(type=None, text=20), beta=MaterialParameter(type=None, text=3), fiber=None)

Bases: BaseXmlModel

alpha: MaterialParameter
beta: MaterialParameter
fiber: FiberVector | FiberLocal | None
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberKiousisUC(*, type='fiber-Kiousis-uncoupled', d1=MaterialParameter(type=None, text=500), d2=MaterialParameter(type=None, text=2.25), n=MaterialParameter(type=None, text=3), fiber=None)

Bases: BaseXmlModel

d1: MaterialParameter
d2: MaterialParameter
fiber: FiberVector | FiberLocal | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

n: MaterialParameter
type: str
class pyfebio.material.FiberLocal(*, type='local', text='1,2')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
type: Literal['local']
class pyfebio.material.FiberNaturalNeoHookean(*, type='fiber-natural-NH', ksi=MaterialParameter(type=None, text=1), lam0=MaterialParameter(type=None, text=1), fiber=None)

Bases: BaseXmlModel

fiber: FiberVector | FiberLocal | None
ksi: MaterialParameter
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberNeoHookean(*, type='fiber-NH', mu=MaterialParameter(type=None, text=1), fiber=None)

Bases: BaseXmlModel

fiber: FiberVector | FiberLocal | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
type: str
class pyfebio.material.FiberToeLinear(*, type='fiber-pow-linear', E=MaterialParameter(type=None, text=1), beta=MaterialParameter(type=None, text=2), lam0=MaterialParameter(type=None, text=1.01), fiber=None)

Bases: BaseXmlModel

E: MaterialParameter
beta: MaterialParameter
fiber: FiberVector | FiberLocal | None
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberToeLinearUC(*, type='fiber-pow-linear-uncoupled', E=MaterialParameter(type=None, text=1), beta=MaterialParameter(type=None, text=2), lam0=MaterialParameter(type=None, text=1.01), fiber=None)

Bases: BaseXmlModel

E: MaterialParameter
beta: MaterialParameter
fiber: FiberVector | FiberLocal | None
lam0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: str
class pyfebio.material.FiberVector(*, type='vector', text='1.0,0.0,0.0')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
type: Literal['vector']
class pyfebio.material.FiniteElementIntegration(*, type='fibers-3d-fei', resolution=1610)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

resolution: Literal[20, 34, 60, 74, 196, 210, 396, 410, 596, 610, 796, 810, 996, 1010, 1196, 1210, 1396, 1410, 1596, 1610, 1796]
type: Literal['fibers-3d-fei']
class pyfebio.material.FungOrthotropicCompressible(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Fung-ortho-compressible', E1=MaterialParameter(type=None, text=124), E2=MaterialParameter(type=None, text=124), E3=MaterialParameter(type=None, text=36), G12=MaterialParameter(type=None, text=67), G23=MaterialParameter(type=None, text=40), G31=MaterialParameter(type=None, text=40), v12=MaterialParameter(type=None, text=0.075), v23=MaterialParameter(type=None, text=0.87), v31=MaterialParameter(type=None, text=0.26), c=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=120))

Bases: MaterialBase

E1: MaterialParameter
E2: MaterialParameter
E3: MaterialParameter
G12: MaterialParameter
G23: MaterialParameter
G31: MaterialParameter
c: MaterialParameter
k: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Fung-ortho-compressible']
v12: MaterialParameter
v23: MaterialParameter
v31: MaterialParameter
class pyfebio.material.FungOrthotropicUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Fung orthotropic', E1=MaterialParameter(type=None, text=124), E2=MaterialParameter(type=None, text=124), E3=MaterialParameter(type=None, text=36), G12=MaterialParameter(type=None, text=67), G23=MaterialParameter(type=None, text=40), G31=MaterialParameter(type=None, text=40), v12=MaterialParameter(type=None, text=0.075), v23=MaterialParameter(type=None, text=0.87), v31=MaterialParameter(type=None, text=0.26), c=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=120000))

Bases: MaterialBase

E1: MaterialParameter
E2: MaterialParameter
E3: MaterialParameter
G12: MaterialParameter
G23: MaterialParameter
G31: MaterialParameter
c: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Fung orthotropic']
v12: MaterialParameter
v23: MaterialParameter
v31: MaterialParameter
class pyfebio.material.GaussKronrodTrapezoidalIntegration(*, type='fibers-3d-gkt', nph=7, nth=31)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

nph: Literal[7, 11, 15, 19, 23, 27]
nth: int
type: Literal['fibers-3d-gkt']
class pyfebio.material.GentCompressible(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='compressible Gent', G=MaterialParameter(type=None, text=3.14), Jm=MaterialParameter(type=None, text=1.5), K=MaterialParameter(type=None, text=100000))

Bases: MaterialBase

G: MaterialParameter
Jm: MaterialParameter
K: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['compressible Gent']
class pyfebio.material.GentUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Gent', G=MaterialParameter(type=None, text=3.14), Jm=MaterialParameter(type=None, text=1.5), k=MaterialParameter(type=None, text=100000))

Bases: MaterialBase

G: MaterialParameter
Jm: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Gent']
class pyfebio.material.HolmesMow(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Holmes-Mow', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.35), beta=MaterialParameter(type=None, text=0.25))

Bases: MaterialBase

E: MaterialParameter
beta: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Holmes-Mow']
v: MaterialParameter
class pyfebio.material.HolmesMowPerm(*, type='perm-Holmes-Mow', perm=MaterialParameter(type=None, text=0.001), M=MaterialParameter(type=None, text=1.5), alpha=MaterialParameter(type=None, text=2))

Bases: BaseXmlModel

M: MaterialParameter
alpha: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm: MaterialParameter
type: Literal['perm-Holmes-Mow']
class pyfebio.material.HolmesMowUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='uncoupled Holmes-Mow', mu=MaterialParameter(type=None, text=0.5), beta=MaterialParameter(type=None, text=2), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

beta: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
type: Literal['uncoupled Holmes-Mow']
class pyfebio.material.HolzapfelGasserOgdenUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Holzapfel-Gasser-Ogden', c=MaterialParameter(type=None, text=1), k1=MaterialParameter(type=None, text=10), k2=MaterialParameter(type=None, text=1), gamma=MaterialParameter(type=None, text=45), kappa=MaterialParameter(type=None, text=0.1), k=MaterialParameter(type=None, text=100), mat_axis=None, fiber=None)

Bases: MaterialBase

c: MaterialParameter
fiber: FiberVector | FiberLocal | None
gamma: MaterialParameter
k: Optional[MaterialParameter]
k1: MaterialParameter
k2: MaterialParameter
kappa: MaterialParameter
mat_axis: MaterialAxisVector | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Holzapfel-Gasser-Ogden']
class pyfebio.material.HolzapfelGasserOgdenUnconstrained(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='HGO unconstrained', c=MaterialParameter(type=None, text=7.64), k1=MaterialParameter(type=None, text=996.6), k2=MaterialParameter(type=None, text=524.6), gamma=MaterialParameter(type=None, text=49.98), kappa=MaterialParameter(type=None, text=0.226), k=MaterialParameter(type=None, text=7640), mat_axis=None, fiber=None)

Bases: MaterialBase

c: MaterialParameter
fiber: FiberVector | FiberLocal | None
gamma: MaterialParameter
k: MaterialParameter
k1: MaterialParameter
k2: MaterialParameter
kappa: MaterialParameter
mat_axis: MaterialAxisVector | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['HGO unconstrained']
class pyfebio.material.InSituStretch(*, lc=None, type=None, text)

Bases: BaseXmlModel

lc: int | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str | float
type: Optional[Literal['map', 'math']]
class pyfebio.material.IsotropicElastic(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='isotropic elastic', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3))

Bases: MaterialBase

E: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['isotropic elastic']
v: MaterialParameter
class pyfebio.material.IsotropicHencky(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='isotropic Hencky', E=MaterialParameter(type=None, text=1000), v=MaterialParameter(type=None, text=0.45))

Bases: MaterialBase

E: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['isotropic Hencky']
v: MaterialParameter
class pyfebio.material.KinematicGrowth(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), elastic, growth='volume')

Bases: MaterialBase

elastic: str
growth: Literal['volume', 'growth', 'area growth', 'fiber growth']
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.material.LargePoissonRatioLigament(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='PRLig', c1=MaterialParameter(type=None, text=90), c2=MaterialParameter(type=None, text=160), mu=MaterialParameter(type=None, text=0.025), v0=MaterialParameter(type=None, text=5.85), m=MaterialParameter(type=None, text=100), k=MaterialParameter(type=None, text=1.55))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
k: MaterialParameter
m: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
type: Literal['PRLig']
v0: MaterialParameter
class pyfebio.material.LeeSacksUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='uncoupled isotropic Lee-Sacks', c0=MaterialParameter(type=None, text=10), c1=MaterialParameter(type=None, text=0.209), c2=MaterialParameter(type=None, text=9.046), tangent_scale=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

c0: MaterialParameter
c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tangent_scale: MaterialParameter
type: Literal['uncoupled isotropic Lee-Sacks']
class pyfebio.material.Lung(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='lung', E=MaterialParameter(type=None, text=1913.7), v=MaterialParameter(type=None, text=0.3413), c1=MaterialParameter(type=None, text=278.2), c3=MaterialParameter(type=None, text=5.766), d1=MaterialParameter(type=None, text=3), d3=MaterialParameter(type=None, text=6))

Bases: MaterialBase

E: MaterialParameter
c1: MaterialParameter
c3: MaterialParameter
d1: MaterialParameter
d3: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['lung']
v: MaterialParameter
class pyfebio.material.Material(*, all_materials=[])

Bases: BaseXmlModel

add_material(material)
all_materials: list[ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | EllipsoidalFiberDistributionDonnanEquilibrium | CellGrowth | OsmoticVirialPressure | PerfectOsmometer | ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | RigidBody | SolidMixture | SolidMixtureUC | BiphasicMaterial | ViscoelasticMaterial | ViscoelasticMaterialUC | BiphasicSoluteMaterial | MultiphasicMaterial | PrestrainElastic | PrestrainElasticUC]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.material.MaterialAxisLocal(*, type='local', text='0,0,0')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
type: Literal['local']
class pyfebio.material.MaterialAxisVector(*, type='vector', a='1.0,0.0,0.0', d='0.0,1.0,0.0')

Bases: BaseXmlModel

a: str
d: str
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['vector']
class pyfebio.material.MaterialBase(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06))

Bases: BaseXmlModel

density: MaterialParameter
id: int | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
class pyfebio.material.MaterialBaseNoDensity(*, name=None, id=None)

Bases: BaseXmlModel

id: int | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
class pyfebio.material.MaterialParameter(*, type=None, text)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: int | float | str
type: Optional[Literal['map', 'math']]
class pyfebio.material.MooneyRivlinUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Mooney-Rivlin', c1=MaterialParameter(type=None, text=10), c2=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Mooney-Rivlin']
class pyfebio.material.MooneyRivlinVonMisesFibersUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Mooney-Rivlin von Mises Fibers', c1=MaterialParameter(type=None, text=10), c2=MaterialParameter(type=None, text=0), c3=MaterialParameter(type=None, text=50), c4=MaterialParameter(type=None, text=5), c5=MaterialParameter(type=None, text=1), lam_max=MaterialParameter(type=None, text=1.3), k=MaterialParameter(type=None, text=100000), kf=MaterialParameter(type=None, text=0), vmc=1, var_n=MaterialParameter(type=None, text=2), tp=MaterialParameter(type=None, text=0), gipt=MaterialParameter(type=None, text=20), mat_axis=MaterialAxisLocal(type='local', text='0,0,0'))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
gipt: MaterialParameter
k: Optional[MaterialParameter]
kf: MaterialParameter
lam_max: MaterialParameter
mat_axis: MaterialAxisVector | MaterialAxisLocal
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tp: MaterialParameter
type: Literal['Mooney-Rivlin von Mises Fibers']
var_n: MaterialParameter
vmc: Literal[1, 2]
class pyfebio.material.MultiphasicMaterial(*, name=None, id=None, type='multiphasic', fluid_density=MaterialParameter(type=None, text=1e-06), phi0=MaterialParameter(type=None, text=0.2), fixed_charge_density=MaterialParameter(type=None, text=0), solid=NeoHookean(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3)), permeability=ConstantIsoPerm(type='perm-const-iso', perm=MaterialParameter(type=None, text=0.001)), osmotic_coefficient=OsmoticCoefficientConst(type='osm-coef-const', osmcoef=MaterialParameter(type=None, text=1)), solvent_supply=None, solute=None, solid_bound=None)

Bases: MaterialBaseNoDensity

add_sbm(new_sbm)
add_solute(new_solute)
fixed_charge_density: MaterialParameter | DynamicMaterialParameter
fluid_density: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

osmotic_coefficient: OsmoticCoefficientConst | OsmoticCoefficientManning
permeability: ConstantIsoPerm | ExponentialIsoPerm | HolmesMowPerm | RefIsoPerm | RefOrthoPerm | RefTransIsoPerm
phi0: MaterialParameter
solid: ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | SolidMixture | SolidMixtureUC
solid_bound: list[SolidBoundMolecule] | None
solute: list[Solute] | None
solvent_supply: SolventSupply | None
type: Literal['multiphasic']
class pyfebio.material.MuscleUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='muscle material', g1=MaterialParameter(type=None, text=500), g2=MaterialParameter(type=None, text=500), p1=MaterialParameter(type=None, text=0.5), p2=MaterialParameter(type=None, text=6.6), smax=MaterialParameter(type=None, text=300000), Lofl=MaterialParameter(type=None, text=1.07), lam_max=MaterialParameter(type=None, text=1.4), k=MaterialParameter(type=None, text=1000000), fiber=FiberVector(type='vector', text='1.0,0.0,0.0'))

Bases: MaterialBase

Lofl: MaterialParameter
fiber: FiberVector | FiberLocal
g1: MaterialParameter
g2: MaterialParameter
k: Optional[MaterialParameter]
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

p1: MaterialParameter
p2: MaterialParameter
smax: MaterialParameter
type: Literal['muscle material']
class pyfebio.material.NaturalNeoHookean(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='natural neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3))

Bases: MaterialBase

E: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['natural neo-Hookean']
v: MaterialParameter
class pyfebio.material.NeoHookean(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3))

Bases: MaterialBase

E: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['neo-Hookean']
v: MaterialParameter
class pyfebio.material.OgdenUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Ogden', k=MaterialParameter(type=None, text=100), m1=MaterialParameter(type=None, text=1), c1=MaterialParameter(type=None, text=1), m2=None, c2=None, m3=None, c3=None, m4=None, c4=None, m5=None, c5=None, m6=None, c6=None)

Bases: MaterialBase

c1: MaterialParameter
c2: Optional[MaterialParameter]
c3: Optional[MaterialParameter]
c4: Optional[MaterialParameter]
c5: Optional[MaterialParameter]
c6: Optional[MaterialParameter]
k: Optional[MaterialParameter]
m1: MaterialParameter
m2: Optional[MaterialParameter]
m3: Optional[MaterialParameter]
m4: Optional[MaterialParameter]
m5: Optional[MaterialParameter]
m6: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Ogden']
class pyfebio.material.OrthotropicCLE(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='orthotropic CLE', lp11=MaterialParameter(type=None, text=13.01), lp22=MaterialParameter(type=None, text=13.01), lp33=MaterialParameter(type=None, text=13.01), lm11=MaterialParameter(type=None, text=0.49), lm22=MaterialParameter(type=None, text=0.49), lm33=MaterialParameter(type=None, text=0.49), l12=MaterialParameter(type=None, text=0.66), l23=MaterialParameter(type=None, text=0.66), l31=MaterialParameter(type=None, text=0.66), mu1=MaterialParameter(type=None, text=0.16), mu2=MaterialParameter(type=None, text=0.16), mu3=MaterialParameter(type=None, text=0.16))

Bases: MaterialBase

l12: MaterialParameter
l23: MaterialParameter
l31: MaterialParameter
lm11: MaterialParameter
lm22: MaterialParameter
lm33: MaterialParameter
lp11: MaterialParameter
lp22: MaterialParameter
lp33: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu1: MaterialParameter
mu2: MaterialParameter
mu3: MaterialParameter
type: Literal['orthotropic CLE']
class pyfebio.material.OrthotropicElastic(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='orthotropic elastic', E1=MaterialParameter(type=None, text=13.4), E2=MaterialParameter(type=None, text=14.1), E3=MaterialParameter(type=None, text=22.9), v12=MaterialParameter(type=None, text=0.42), v23=MaterialParameter(type=None, text=0.23), v31=MaterialParameter(type=None, text=0.38), G12=MaterialParameter(type=None, text=4.6), G23=MaterialParameter(type=None, text=6.2), G31=MaterialParameter(type=None, text=5.8), mat_axis=None)

Bases: MaterialBase

E1: MaterialParameter
E2: MaterialParameter
E3: MaterialParameter
G12: MaterialParameter
G23: MaterialParameter
G31: MaterialParameter
mat_axis: MaterialAxisVector | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['orthotropic elastic']
v12: MaterialParameter
v23: MaterialParameter
v31: MaterialParameter
class pyfebio.material.OsmoticCoefficientConst(*, type='osm-coef-const', osmcoef=MaterialParameter(type=None, text=1))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

osmcoef: MaterialParameter
type: Literal['osm-coef-const']
class pyfebio.material.OsmoticCoefficientManning(*, type='osm-coef-Manning', ksi=MaterialParameter(type=None, text=1), co_ion=None)

Bases: BaseXmlModel

co_ion: Optional[MaterialParameter]
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['osm-coef-Manning']
class pyfebio.material.OsmoticVirialPressure(*, name=None, id=None, type='osmotic virial expansion', phiw0=MaterialParameter(type=None, text=0.8), cr=DynamicMaterialParameter(type=None, lc=1, text=100), c1=MaterialParameter(type=None, text=2.436e-06), c2=MaterialParameter(type=None, text=0), c3=MaterialParameter(type=None, text=0))

Bases: MaterialBaseNoDensity

c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
cr: DynamicMaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phiw0: MaterialParameter
type: Literal['osmotic virial expansion']
class pyfebio.material.PerfectOsmometer(*, name=None, id=None, type='perfect osmometer', phiw0=MaterialParameter(type=None, text=0.8), iosm=MaterialParameter(type=None, text=300), bosm=DynamicMaterialParameter(type=None, lc=1, text=1))

Bases: MaterialBaseNoDensity

bosm: DynamicMaterialParameter
iosm: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phiw0: MaterialParameter
type: Literal['perfect osmometer']
class pyfebio.material.PorousNeoHookean(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='porous neo-Hookean', E=MaterialParameter(type=None, text=1), phi0=MaterialParameter(type=None, text=0.5))

Bases: MaterialBase

E: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

phi0: MaterialParameter
type: Literal['porous neo-Hookean']
class pyfebio.material.PrestrainElastic(*, name=None, id=None, type='prestrain elastic', elastic=TransIsoMooneyRivlin(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='coupled trans-iso Mooney-Rivlin', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0.1), c3=MaterialParameter(type=None, text=0), c4=MaterialParameter(type=None, text=43), c5=MaterialParameter(type=None, text=3), lam_max=MaterialParameter(type=None, text=1.05), k=MaterialParameter(type=None, text=10), fiber=None), prestrain)

Bases: MaterialBaseNoDensity

elastic: ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | SolidMixture
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

prestrain: PrestrainInSituStretch | PrestrainGradient
type: Literal['prestrain elastic']
class pyfebio.material.PrestrainElasticUC(*, name=None, id=None, type='prestrain elastic', elastic=TransIsoMooneyRivlin(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='coupled trans-iso Mooney-Rivlin', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0.1), c3=MaterialParameter(type=None, text=0), c4=MaterialParameter(type=None, text=43), c5=MaterialParameter(type=None, text=3), lam_max=MaterialParameter(type=None, text=1.05), k=MaterialParameter(type=None, text=10), fiber=None), prestrain)

Bases: MaterialBaseNoDensity

elastic: ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | SolidMixtureUC
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

prestrain: PrestrainInSituStretch | PrestrainGradient
type: Literal['prestrain elastic']
class pyfebio.material.PrestrainGradient(*, type='prestrain gradient', ramp, F0=MaterialParameter(type=None, text='1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0'))

Bases: BaseXmlModel

F0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

ramp: PrestrainRamp
type: Literal['prestrain gradient']
class pyfebio.material.PrestrainInSituStretch(*, type='in-situ stretch', stretch, isochoric=1)

Bases: BaseXmlModel

isochoric: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

stretch: InSituStretch
type: Literal['in-situ stretch']
class pyfebio.material.PrestrainRamp(*, lc, text=1.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class pyfebio.material.RefIsoPerm(*, type='perm-ref-iso', perm0=MaterialParameter(type=None, text=0.001), perm1=MaterialParameter(type=None, text=0.005), perm2=MaterialParameter(type=None, text=0.002), M=MaterialParameter(type=None, text=1.5), alpha=MaterialParameter(type=None, text=2))

Bases: BaseXmlModel

M: MaterialParameter
alpha: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm0: MaterialParameter
perm1: MaterialParameter
perm2: MaterialParameter
type: Literal['perm-ref-iso']
class pyfebio.material.RefOrthoPerm(*, type='perm-ref-ortho', perm0=MaterialParameter(type=None, text=0.001), perm1=MaterialParameter(type=None, text='0.01,0.02,0.03'), perm2=MaterialParameter(type=None, text='0.001,0.002,0.003'), M0=MaterialParameter(type=None, text=0.5), M=MaterialParameter(type=None, text='1.5,2.0,2.5'), alpha0=MaterialParameter(type=None, text=2), alpha=MaterialParameter(type=None, text='2.0,2.5,3.0'))

Bases: BaseXmlModel

M: MaterialParameter
M0: MaterialParameter
alpha: MaterialParameter
alpha0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm0: MaterialParameter
perm1: MaterialParameter
perm2: MaterialParameter
type: Literal['perm-ref-ortho']
class pyfebio.material.RefTransIsoPerm(*, type='perm-ref-trans-iso', perm0=MaterialParameter(type=None, text=0.002), perm1A=MaterialParameter(type=None, text=0.01), perm2A=MaterialParameter(type=None, text=0.01), perm1T=MaterialParameter(type=None, text=0.001), perm2T=MaterialParameter(type=None, text=0.05), M0=MaterialParameter(type=None, text=1), MA=MaterialParameter(type=None, text=0.5), MT=MaterialParameter(type=None, text=1.5), alpha0=MaterialParameter(type=None, text=1), alphaA=MaterialParameter(type=None, text=0.5), alphaT=MaterialParameter(type=None, text=2))

Bases: BaseXmlModel

M0: MaterialParameter
MA: MaterialParameter
MT: MaterialParameter
alpha0: MaterialParameter
alphaA: MaterialParameter
alphaT: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

perm0: MaterialParameter
perm1A: MaterialParameter
perm1T: MaterialParameter
perm2A: MaterialParameter
perm2T: MaterialParameter
type: Literal['perm-ref-trans-iso']
class pyfebio.material.RigidBody(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='rigid body', center_of_mass=None, E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3))

Bases: MaterialBase

E: MaterialParameter
center_of_mass: Optional[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['rigid body']
v: MaterialParameter
class pyfebio.material.ShenoyWang(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Shenoy', mu=MaterialParameter(type=None, text=0.7692), k=MaterialParameter(type=None, text=1.667), Ef=MaterialParameter(type=None, text=134.6), lam_c=MaterialParameter(type=None, text=1.02), lam_t=MaterialParameter(type=None, text=0.255), n=MaterialParameter(type=None, text=5), m=MaterialParameter(type=None, text=30))

Bases: MaterialBase

Ef: MaterialParameter
k: MaterialParameter
lam_c: MaterialParameter
lam_t: MaterialParameter
m: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

mu: MaterialParameter
n: MaterialParameter
type: Literal['Shenoy']
class pyfebio.material.SolidBoundMolecule(*, sbm, rho0=MaterialParameter(type=None, text=1), rhomin=MaterialParameter(type=None, text=0), rhomax=None)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rho0: MaterialParameter
rhomax: Optional[MaterialParameter]
rhomin: MaterialParameter
sbm: int
class pyfebio.material.SolidMixture(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='solid mixture', solid_list=[])

Bases: MaterialBase

add_solid(new_solid)
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

solid_list: list[ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | FiberNeoHookean | FiberNaturalNeoHookean | FiberToeLinear | FiberEntropyChain | FiberExponentialPower | FiberExponentialLinear | FiberExponentialPowerLinear | ContinuousFiberDistribution | EllipsoidalFiberDistributionDonnanEquilibrium | CellGrowth | OsmoticVirialPressure | PerfectOsmometer]
type: Literal['solid mixture']
class pyfebio.material.SolidMixtureUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='uncoupled solid mixture', solid_list=[], k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

add_solid(new_solid)
k: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

solid_list: list[ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | FiberToeLinearUC | FiberKiousisUC | FiberExponentialPowerUC | FiberExponentialLinearUC | FiberEntropyChainUC | ContinuousFiberDistributionUC]
type: Literal['solid mixture']
class pyfebio.material.Solubility(*, name='Solubility', type='solub-const', solub=MaterialParameter(type=None, text=1))

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
solub: MaterialParameter
type: Literal['solub-const']
class pyfebio.material.Solute(*, sol, diffusivity=Diffusivity(name='Diffusivity', type='diff-const-iso', free_diff=MaterialParameter(type=None, text=1), diff=MaterialParameter(type=None, text=0.001)), solubility=Solubility(name='Solubility', type='solub-const', solub=MaterialParameter(type=None, text=1)))

Bases: BaseXmlModel

diffusivity: Diffusivity
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

sol: int
solubility: Solubility
class pyfebio.material.SolventSupply(*, type='Starling', kp=0.001, pv=0.1)

Bases: BaseXmlModel

kp: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pv: MaterialParameter
type: Literal['Starling']
class pyfebio.material.SphericalFiberDistribution(*, name=None, id=None, type='spherical fiber distribution', ksi=MaterialParameter(type=None, text=10), alpha=MaterialParameter(type=None, text=0), beta=MaterialParameter(type=None, text=2.5))

Bases: MaterialBaseNoDensity

alpha: MaterialParameter
beta: MaterialParameter
ksi: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['spherical fiber distribution']
class pyfebio.material.SphericalFiberDistributionSBM(*, name=None, id=None, type='spherical fiber distribution sbm', alpha=MaterialParameter(type=None, text=0), beta=MaterialParameter(type=None, text=2.5), ksi0=MaterialParameter(type=None, text=10), gamma=MaterialParameter(type=None, text=2), rho0=MaterialParameter(type=None, text=1), sbm=MaterialParameter(type=None, text=1))

Bases: MaterialBaseNoDensity

alpha: MaterialParameter
beta: MaterialParameter
gamma: MaterialParameter
ksi0: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rho0: MaterialParameter
sbm: MaterialParameter
type: Literal['spherical fiber distribution']
class pyfebio.material.TendonUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='tendon material', g1=MaterialParameter(type=None, text=50000), g2=MaterialParameter(type=None, text=50000), l1=MaterialParameter(type=None, text=2700000), l2=MaterialParameter(type=None, text=46.4), lam_max=MaterialParameter(type=None, text=1.03), k=MaterialParameter(type=None, text=10000000), fiber=FiberVector(type='vector', text='1.0,0.0,0.0'))

Bases: MaterialBase

fiber: FiberVector | FiberLocal
g1: MaterialParameter
g2: MaterialParameter
k: Optional[MaterialParameter]
l1: MaterialParameter
l2: MaterialParameter
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['tendon material']
class pyfebio.material.TensionCompressionNonlinearOrthoUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='TC nonlinear orthotropic', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0), k=MaterialParameter(type=None, text=100), beta=MaterialParameter(type=None, text='4.3,4.3,4.3'), ksi=MaterialParameter(type=None, text='4525,4525,4525'), mat_axis=MaterialAxisVector(type='vector', a='1.0,0.0,0.0', d='0.0,1.0,0.0'))

Bases: MaterialBase

beta: MaterialParameter
c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
ksi: MaterialParameter
mat_axis: MaterialAxisVector
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['TC nonlinear orthotropic']
class pyfebio.material.TransIsoMooneyRivlin(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='coupled trans-iso Mooney-Rivlin', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0.1), c3=MaterialParameter(type=None, text=0), c4=MaterialParameter(type=None, text=43), c5=MaterialParameter(type=None, text=3), lam_max=MaterialParameter(type=None, text=1.05), k=MaterialParameter(type=None, text=10), fiber=None)

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
k: MaterialParameter
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['coupled trans-iso Mooney-Rivlin']
class pyfebio.material.TransIsoMooneyRivlinUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='trans iso Mooney-Rivlin', c1=MaterialParameter(type=None, text=13.85), c2=MaterialParameter(type=None, text=0), c3=MaterialParameter(type=None, text=2.07), c4=MaterialParameter(type=None, text=61.44), c5=MaterialParameter(type=None, text=640.7), lam_max=MaterialParameter(type=None, text=1.03), k=MaterialParameter(type=None, text=100), fiber=None, active_contraction=None)

Bases: MaterialBase

active_contraction: ActiveContraction | None
c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
k: Optional[MaterialParameter]
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['trans iso Mooney-Rivlin']
class pyfebio.material.TransIsoVerondaWestmann(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='coupled trans-iso Veronda-Westmann', c1=MaterialParameter(type=None, text=1), c2=MaterialParameter(type=None, text=0.1), c3=MaterialParameter(type=None, text=1), c4=MaterialParameter(type=None, text=1), c5=MaterialParameter(type=None, text=1.34), lam_max=MaterialParameter(type=None, text=1.3), k=MaterialParameter(type=None, text=100), fiber=None)

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
k: MaterialParameter
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['coupled trans-iso Veronda-Westmann']
class pyfebio.material.TransIsoVerondaWestmannUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='trans iso Veronda-Westmann', c1=MaterialParameter(type=None, text=13.85), c2=MaterialParameter(type=None, text=0), c3=MaterialParameter(type=None, text=2.07), c4=MaterialParameter(type=None, text=61.44), c5=MaterialParameter(type=None, text=640.7), lam_max=MaterialParameter(type=None, text=1.03), k=MaterialParameter(type=None, text=100), fiber=None, active_contraction=None)

Bases: MaterialBase

active_contraction: ActiveContraction | None
c1: MaterialParameter
c2: MaterialParameter
c3: MaterialParameter
c4: MaterialParameter
c5: MaterialParameter
fiber: FiberVector | FiberLocal | None
k: Optional[MaterialParameter]
lam_max: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['trans iso Veronda-Westmann']
class pyfebio.material.TrapezoidalRuleIntegration(*, type='fibers-2d-trapezoidal', nth=31)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

nth: int
type: Literal['fibers-2d-trapezoidal']
class pyfebio.material.UnconstrainedOgden(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Ogden unconstrained', m1=MaterialParameter(type=None, text=1), c1=MaterialParameter(type=None, text=1), m2=None, c2=None, m3=None, c3=None, m4=None, c4=None, m5=None, c5=None, m6=None, c6=None)

Bases: MaterialBase

c1: MaterialParameter
c2: Optional[MaterialParameter]
c3: Optional[MaterialParameter]
c4: Optional[MaterialParameter]
c5: Optional[MaterialParameter]
c6: Optional[MaterialParameter]
m1: MaterialParameter
m2: Optional[MaterialParameter]
m3: Optional[MaterialParameter]
m4: Optional[MaterialParameter]
m5: Optional[MaterialParameter]
m6: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Ogden unconstrained']
class pyfebio.material.VerondaWestmannUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Veronda-Westmann', c1=MaterialParameter(type=None, text=1000), c2=MaterialParameter(type=None, text=2000), k=MaterialParameter(type=None, text=1000))

Bases: MaterialBase

c1: MaterialParameter
c2: MaterialParameter
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Veronda-Westmann']
class pyfebio.material.ViscoelasticMaterial(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='viscoelastic', g0=MaterialParameter(type=None, text=1), g1=MaterialParameter(type=None, text=0), g2=MaterialParameter(type=None, text=0), g3=MaterialParameter(type=None, text=0), g4=MaterialParameter(type=None, text=0), g5=MaterialParameter(type=None, text=0), g6=MaterialParameter(type=None, text=0), t1=MaterialParameter(type=None, text=1), t2=MaterialParameter(type=None, text=1), t3=MaterialParameter(type=None, text=1), t4=MaterialParameter(type=None, text=1), t5=MaterialParameter(type=None, text=1), t6=MaterialParameter(type=None, text=1), elastic=NeoHookean(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='neo-Hookean', E=MaterialParameter(type=None, text=1), v=MaterialParameter(type=None, text=0.3)))

Bases: MaterialBase

elastic: ArrudaBoyce | CoupledMooneyRivlin | CoupledVerondaWestmann | CubicCLE | EllipsoidalFiberDistributionNeoHookean | FungOrthotropicCompressible | GentCompressible | HolmesMow | HolzapfelGasserOgdenUnconstrained | IsotropicElastic | IsotropicHencky | LargePoissonRatioLigament | Lung | NaturalNeoHookean | NeoHookean | PorousNeoHookean | OrthotropicElastic | OrthotropicCLE | ShenoyWang | TransIsoMooneyRivlin | TransIsoVerondaWestmann | UnconstrainedOgden | SphericalFiberDistribution | SphericalFiberDistributionSBM | SolidMixture
g0: MaterialParameter
g1: MaterialParameter
g2: MaterialParameter
g3: MaterialParameter
g4: MaterialParameter
g5: MaterialParameter
g6: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

t1: MaterialParameter
t2: MaterialParameter
t3: MaterialParameter
t4: MaterialParameter
t5: MaterialParameter
t6: MaterialParameter
type: Literal['viscoelastic']
class pyfebio.material.ViscoelasticMaterialUC(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='uncoupled viscoelastic', k=MaterialParameter(type=None, text=10), g0=MaterialParameter(type=None, text=1), g1=MaterialParameter(type=None, text=0), g2=MaterialParameter(type=None, text=0), g3=MaterialParameter(type=None, text=0), g4=MaterialParameter(type=None, text=0), g5=MaterialParameter(type=None, text=0), g6=MaterialParameter(type=None, text=0), t1=MaterialParameter(type=None, text=1), t2=MaterialParameter(type=None, text=1), t3=MaterialParameter(type=None, text=1), t4=MaterialParameter(type=None, text=1), t5=MaterialParameter(type=None, text=1), t6=MaterialParameter(type=None, text=1), elastic=MooneyRivlinUC(name=None, id=1, density=MaterialParameter(type=None, text=1e-06), type='Mooney-Rivlin', c1=MaterialParameter(type=None, text=10), c2=MaterialParameter(type=None, text=1), k=MaterialParameter(type=None, text=1000)))

Bases: MaterialBase

elastic: ArrudaBoyceUC | EllipsoidalFiberDistributionMooneyRivlinUC | EllipsoidalFiberDistributionVerondaWestmannUC | FungOrthotropicUC | GentUC | HolmesMowUC | HolzapfelGasserOgdenUC | MooneyRivlinUC | MuscleUC | OgdenUC | TendonUC | TensionCompressionNonlinearOrthoUC | TransIsoMooneyRivlinUC | TransIsoVerondaWestmannUC | MooneyRivlinVonMisesFibersUC | LeeSacksUC | Yeoh | SolidMixtureUC
g0: MaterialParameter
g1: MaterialParameter
g2: MaterialParameter
g3: MaterialParameter
g4: MaterialParameter
g5: MaterialParameter
g6: MaterialParameter
k: MaterialParameter
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

t1: MaterialParameter
t2: MaterialParameter
t3: MaterialParameter
t4: MaterialParameter
t5: MaterialParameter
t6: MaterialParameter
type: Literal['uncoupled viscoelastic']
class pyfebio.material.Yeoh(*, name=None, id=None, density=MaterialParameter(type=None, text=1e-06), type='Yeoh', c1=MaterialParameter(type=None, text=0.75), c2=None, c3=None, c4=None, c5=None, c6=None, k=MaterialParameter(type=None, text=100))

Bases: MaterialBase

c1: MaterialParameter
c2: Optional[MaterialParameter]
c3: Optional[MaterialParameter]
c4: Optional[MaterialParameter]
c5: Optional[MaterialParameter]
c6: Optional[MaterialParameter]
k: Optional[MaterialParameter]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['Yeoh']
pyfebio.material.mat_is_gt_one_float(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_gte_one_float(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_gte_two_float(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_lte_90_gte_0(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_lte_onethird_gte_zero(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_non_negative_float(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_positive_float(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_positive_int(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_positive_int_mult10(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_string_float_vec3(parameter)
Return type:

MaterialParameter

pyfebio.material.mat_is_string_float_vec9(parameter)
Return type:

MaterialParameter

pyfebio.material.tension_only_nonlinear_spring(slack, e0, k)

Blankevoort 1991 ligament model

Parameters:
  • slack (float) – engineering strain representing amount of slack (will not produce force until slack strain is reached)

  • e0 (float) – engineering strain where fibers are fully straigtened (start of linear region)

  • k (float) – elastic modulus of linear region

Return type:

str

Returns:

A string expression of fiber force equation compatible with FEBio math interpreter

pyfebio.mesh module

class pyfebio.mesh.DiscreteElement(*, text)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.DiscreteSet(*, name='', elements=[])

Bases: BaseXmlModel

add_element(new_element)
elements: list[DiscreteElement]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
class pyfebio.mesh.Edge(*, name='', all_line2=[], all_line3=[])

Bases: BaseXmlModel

add_line2(new_line2)
add_line3(new_line3)
all_line2: list[Line2Element]
all_line3: list[Line3Element]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
class pyfebio.mesh.ElementSet(*, name='', text)

Bases: BaseXmlModel

add_element(new_element_id)
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
text: str
class pyfebio.mesh.Elements(*, name='Part', type='hex8', all_elements=[])

Bases: BaseXmlModel

add_element(new_element)
all_elements: list[Tet4Element | Tet10Element | Tet15Element | Hex8Element | Hex20Element | Hex27Element | Penta6Element | Penta15Element | Pyra5Element | Tri3Element | Tri6Element | Quad4Element | Quad8Element | Quad9Element | Line2Element | Line3Element]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Union[Literal['tet4', 'tet10', 'tet15', 'hex8', 'hex20', 'hex27', 'penta6', 'penta15', 'pyra5'], Literal['tri3', 'tri6', 'quad4', 'quad8', 'quad9', 'q4ans', 'q4eas'], Literal['line2', 'line3']]
validate_elements()
class pyfebio.mesh.Hex20Element(*, text='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Hex27Element(*, text='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Hex8Element(*, text='1,2,3,4,5,6,7,8', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Line2Element(*, text='1,2', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Line3Element(*, text='1,2,3', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Mesh(*, nodes=[], elements=[], part_lists=[], surfaces=[], edges=[], element_sets=[], node_sets=[], discrete_sets=[], surface_pairs=[])

Bases: BaseXmlModel

add_discrete_set(new_discrete_set)
add_edge(new_edge)
add_element_domain(new_element_domain)
add_element_set(new_element_set)
add_node_domain(new_node_domain)
add_node_set(new_node_set)
add_part_list(new_part_list)
add_surface(new_surface)
add_surface_pair(new_surface_pair)
discrete_sets: list[DiscreteSet]
edges: list[Edge]
element_sets: list[ElementSet]
elements: list[Elements]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_sets: list[NodeSet]
nodes: list[Nodes]
part_lists: list[PartList]
surface_pairs: list[SurfacePair]
surfaces: list[Surface]
class pyfebio.mesh.Node(*, text='0.0,0.0,0.0', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.NodeSet(*, name='', text)

Bases: BaseXmlModel

add_node(new_node_id)
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
text: str
class pyfebio.mesh.Nodes(*, name='', all_nodes=[])

Bases: BaseXmlModel

add_node(new_node)
all_nodes: list[Node]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
class pyfebio.mesh.PartList(*, name='allParts', text='')

Bases: BaseXmlModel

add_part(new_part)
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
text: str
class pyfebio.mesh.Penta15Element(*, text='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Penta6Element(*, text='1,2,3,4,5,6', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Pyra5Element(*, text='1,2,3,4,5', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Quad4Element(*, text='1,2,3,4', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Quad8Element(*, text='1,2,3,4,5,6,7,8', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Quad9Element(*, text='1,2,3,4,5,6,7,8,9', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Surface(*, name='', all_tri3=[], all_tri6=[], all_quad4=[], all_quad8=[], all_quad9=[])

Bases: BaseXmlModel

add_quad4(new_quad)
add_quad8(new_quad)
add_quad9(new_quad)
add_tri3(new_tri)
add_tri6(new_tri)
all_quad4: list[Quad4Element]
all_quad8: list[Quad8Element]
all_quad9: list[Quad9Element]
all_tri3: list[Tri3Element]
all_tri6: list[Tri6Element]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
class pyfebio.mesh.SurfacePair(*, name='', primary, secondary)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
primary: str
secondary: str
class pyfebio.mesh.Tet10Element(*, text='1,2,3,4,5,6,7,8,9,10', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Tet15Element(*, text='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Tet4Element(*, text='1,2,3,4', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Tri3Element(*, text='1,2,3', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
class pyfebio.mesh.Tri6Element(*, text='1,2,3,4,5,6', id)

Bases: BaseXmlModel

id: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str
pyfebio.mesh.numpy_to_elements(elements, element_type, name='Part', offset=0)
Return type:

Elements

pyfebio.mesh.numpy_to_nodes(nodes, name='Part', offset=0)
Return type:

Nodes

pyfebio.mesh.numpy_to_surface_list(facets, element_type, offset=0)
Return type:

list[Tri3Element | Tri6Element | Quad4Element | Quad8Element | Quad9Element]

pyfebio.mesh.translate_meshio(meshobj, nodeoffset=0, elementoffset=0, surfaceoffset=0, shell_sets=None, elements_name=None, nodes_name=None, node_sets_from_surfaces=False)
Return type:

Mesh

pyfebio.meshdata module

class pyfebio.meshdata.ElementData(*, name, elem_set, data_type, all_elements=[])

Bases: BaseXmlModel

add_element(new_element)
all_elements: list[ElementDataElement]
data_type: Literal['scalar', 'vec3']
elem_set: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
class pyfebio.meshdata.ElementDataElement(*, lid, text)

Bases: BaseXmlModel

lid: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Union[float, str]
class pyfebio.meshdata.MeshData(*, element_data=[], node_data=[])

Bases: BaseXmlModel

add_element_data(new_element_data)
add_node_data(new_node_data)
element_data: list[ElementData]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_data: list[NodeData]
class pyfebio.meshdata.NodeData(*, name, node_set, data_type, all_nodes=[])

Bases: BaseXmlModel

add_node(new_node)
all_nodes: list[NodeDataNode]
data_type: Literal['scalar', 'vec3']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
node_set: str
class pyfebio.meshdata.NodeDataNode(*, lid, text)

Bases: BaseXmlModel

lid: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Union[float, str]
class pyfebio.meshdata.SurfaceData

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

pyfebio.meshdomains module

class pyfebio.meshdomains.BeamDomain(*, name='BeamPart', type, mat='material', cross_sectional_area=None, v=None)

Bases: BaseXmlModel

cross_sectional_area: float | None
mat: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['linear-truss', 'elastic-truss', 'linear-beam']
v: float | None
validate_material()
class pyfebio.meshdomains.MeshDomains(*, solid_domains=[], shell_domains=[], beam_domains=[])

Bases: BaseXmlModel

add_beam_domain(new_beam_domain)
add_shell_domain(new_shell_domain)
add_solid_domain(new_solid_domain)
beam_domains: list[BeamDomain]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

shell_domains: list[ShellDomain]
solid_domains: list[SolidDomain]
class pyfebio.meshdomains.ShellDomain(*, name='ShellPart', type=None, mat='material', shell_thickness=0.01)

Bases: BaseXmlModel

mat: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
shell_thickness: float
type: Optional[Literal['elastic-shell', 'three-field-shell', 'rigid-shell', 'elastic-shell-old', 'elastic-shell-eas', 'elastic-shell-ans']]
class pyfebio.meshdomains.SolidDomain(*, name='SolidPart', type=None, elem_type=None, mat='material', alpha=None, iso_stab=None)

Bases: BaseXmlModel

alpha: float | None
elem_type: Optional[Literal['HEX8G6', 'HEX8G8', 'HEX20G8', 'TET4G1', 'TET4G4', 'TET10G4', 'TET10G8', 'TET10GL11', 'TET15G8', 'TET15G11', 'TET15G15', 'PENTA15G8']]
iso_stab: Optional[Literal[0, 1]]
mat: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Optional[Literal['elastic-solid', 'three-field-solid', 'rigid-solid', 'udg-hex', 'sri-solid', 'remodelling-solid', 'ut4-solid']]

pyfebio.model module

class pyfebio.model.BiphasicModel(*, version='4.0', module_=Module(type='biphasic'), globals_=Globals(constants=Constants(T=298, P=0, R=8.314e-06, Fc=9.6485e-05), solutes=None, solid_bound_molecules=None), control_=Control(analysis='TRANSIENT', time_steps=100, step_size=0.1, plot_zero_state=0, plot_range='0,-1', plot_level='PLOT_MAJOR_ITRS', output_level='OUTPUT_MAJOR_ITRS', plot_stride=1, output_stride=1, adaptor_re_solve=1, time_stepper=TimeStepper(type='default', max_retries=5, opt_iter=11, dtmin=0.0, dtmax=TimeStepValue(lc=None, text=0.1), aggressiveness=0, cutback=0.5, dtforce=0), solver=BiphasicSolver(symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='biphasic', dtol=0.001, etol=0.01, rtol=0, ptol=0.01, ctol=0, mixed_formulation=0)), material_=Material(all_materials=[]), mesh_=Mesh(nodes=[], elements=[], part_lists=[], surfaces=[], edges=[], element_sets=[], node_sets=[], discrete_sets=[], surface_pairs=[]), meshdomains_=MeshDomains(solid_domains=[], shell_domains=[], beam_domains=[]), meshdata_=MeshData(element_data=[], node_data=[]), meshadaptor_=MeshAdaptor(all_adaptors=[]), discrete_=Discrete(discrete_materials=[], discrete_elements=[]), loaddata_=LoadData(load_controllers=[]), loads_=Loads(all_surface_loads=[], all_nodal_loads=[], all_body_loads=[]), rigid_=Rigid(all_rigid_bcs=[], all_rigid_loads=[], all_rigid_connectors=[], all_rigid_initial_conditions=[]), initial_=Initial(all_initial_conditions=[]), boundary_=Boundary(all_bcs=[]), contact_=Contact(all_contact_interfaces=[]), constraints_=Constraints(all_constraints=[]), step_=Step(all_steps=[]), output_=Output(logfile=[], plotfile=[]))

Bases: Model

control_: Control | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

module_: Module | None
class pyfebio.model.FEBioRoot(*, version='4.0', sections=[])

Bases: BaseXmlModel

add_section(section)
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

save(filename)
sections: list[Module | Globals | Control | Material | RigidBody | MeshDomains | Mesh | MeshData | Discrete | LoadData | Loads | Rigid | Initial | Boundary | Contact | Constraints | Step | Output | Include]
version: str
class pyfebio.model.Model(*, version='4.0', module_=Module(type='solid'), globals_=Globals(constants=Constants(T=298, P=0, R=8.314e-06, Fc=9.6485e-05), solutes=None, solid_bound_molecules=None), control_=Control(analysis='STATIC', time_steps=10, step_size=0.1, plot_zero_state=0, plot_range='0,-1', plot_level='PLOT_MAJOR_ITRS', output_level='OUTPUT_MAJOR_ITRS', plot_stride=1, output_stride=1, adaptor_re_solve=1, time_stepper=TimeStepper(type='default', max_retries=5, opt_iter=11, dtmin=0.0, dtmax=TimeStepValue(lc=None, text=1.0), aggressiveness=0, cutback=0.5, dtforce=0), solver=SolidSolver(symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='solid', dtol=0.001, etol=0.01, rtol=0, rhoi=-2, alpha=1, beta=0.25, gamma=0.5, logSolve=0, arc_length=0, arc_length_scale=0)), material_=Material(all_materials=[]), mesh_=Mesh(nodes=[], elements=[], part_lists=[], surfaces=[], edges=[], element_sets=[], node_sets=[], discrete_sets=[], surface_pairs=[]), meshdomains_=MeshDomains(solid_domains=[], shell_domains=[], beam_domains=[]), meshdata_=MeshData(element_data=[], node_data=[]), meshadaptor_=MeshAdaptor(all_adaptors=[]), discrete_=Discrete(discrete_materials=[], discrete_elements=[]), loaddata_=LoadData(load_controllers=[]), loads_=Loads(all_surface_loads=[], all_nodal_loads=[], all_body_loads=[]), rigid_=Rigid(all_rigid_bcs=[], all_rigid_loads=[], all_rigid_connectors=[], all_rigid_initial_conditions=[]), initial_=Initial(all_initial_conditions=[]), boundary_=Boundary(all_bcs=[]), contact_=Contact(all_contact_interfaces=[]), constraints_=Constraints(all_constraints=[]), step_=Step(all_steps=[]), output_=Output(logfile=[], plotfile=[]))

Bases: BaseXmlModel

add_simple_rigid_body(origin, name)
boundary_: Boundary
constraints_: Constraints
contact_: Contact
control_: Control | None
discrete_: Discrete
globals_: Globals
initial_: Initial
loaddata_: LoadData
loads_: Loads
material_: Material
mesh_: Mesh
meshadaptor_: MeshAdaptor
meshdata_: MeshData
meshdomains_: MeshDomains
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

module_: Module | None
output_: Output
rigid_: Rigid
save(filename)
step_: Step
version: str
class pyfebio.model.MultiphasicModel(*, version='4.0', module_=Module(type='multiphasic'), globals_=Globals(constants=Constants(T=298, P=0, R=8.314e-06, Fc=9.6485e-05), solutes=None, solid_bound_molecules=None), control_=Control(analysis='TRANSIENT', time_steps=100, step_size=0.1, plot_zero_state=0, plot_range='0,-1', plot_level='PLOT_MAJOR_ITRS', output_level='OUTPUT_MAJOR_ITRS', plot_stride=1, output_stride=1, adaptor_re_solve=1, time_stepper=TimeStepper(type='default', max_retries=5, opt_iter=11, dtmin=0.0, dtmax=TimeStepValue(lc=None, text=0.1), aggressiveness=0, cutback=0.5, dtforce=0), solver=MultiphasicSolver(symmetric_stiffness='preferred', equation_scheme='staggered', equation_order='default', optimize_bw=0, lstol=0.9, lsmin=0.01, lsiter=5, ls_check_jacobians=0, max_refs=15, check_zero_diagonal=0, zero_diagonal_tol=0, force_partition=0, reform_each_time_step=1, reform_augment=0, diverge_reform=1, min_residual=1e-20, max_residual=0, qn_method=BFGSMethod(type='BFGS', max_ups=10, max_buffer_size=0, cycle_buffer=1, cmax=100000.0), linear_solver=LinearSolver(type='pardiso'), type='multiphasic', dtol=0.001, etol=0.01, rtol=0, ptol=0.01, ctol=0.01, force_positive_concentrations=1)), material_=Material(all_materials=[]), mesh_=Mesh(nodes=[], elements=[], part_lists=[], surfaces=[], edges=[], element_sets=[], node_sets=[], discrete_sets=[], surface_pairs=[]), meshdomains_=MeshDomains(solid_domains=[], shell_domains=[], beam_domains=[]), meshdata_=MeshData(element_data=[], node_data=[]), meshadaptor_=MeshAdaptor(all_adaptors=[]), discrete_=Discrete(discrete_materials=[], discrete_elements=[]), loaddata_=LoadData(load_controllers=[]), loads_=Loads(all_surface_loads=[], all_nodal_loads=[], all_body_loads=[]), rigid_=Rigid(all_rigid_bcs=[], all_rigid_loads=[], all_rigid_connectors=[], all_rigid_initial_conditions=[]), initial_=Initial(all_initial_conditions=[]), boundary_=Boundary(all_bcs=[]), contact_=Contact(all_contact_interfaces=[]), constraints_=Constraints(all_constraints=[]), step_=Step(all_steps=[]), output_=Output(logfile=[], plotfile=[]))

Bases: Model

control_: Control | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

module_: Module | None
pyfebio.model.run_model(filepath, silent=False)
Return type:

int

pyfebio.module module

class pyfebio.module.Module(*, type='solid')

Bases: BaseXmlModel

FEBio module – currently, only supporting “solid” and “biphasic”.

Unsupported modules: “solute”, “heat”, “fluid”, “fluid-FSI”

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['solid', 'biphasic', 'multiphasic']

pyfebio.output module

class pyfebio.output.DataEntry(*, data='', file=None, delim=' ', format=None, text=None)

Bases: BaseXmlModel

data: str
delim: str
file: str | None
format: str | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: str | None
class pyfebio.output.ElementDataEnum(*values)

Bases: str, Enum

devaiatoric_strain_energy_density = 'devsed'
fluid_pressure = 'p'
p1_strain = 'E1'
p1_stress = 's1'
p2_strain = 'E2'
p2_stress = 's2'
p3_strain = 'E3'
p3_stress = 's3'
strain_energy_density = 'sed'
x_coordinate = 'x'
x_flux = 'wx'
x_strain = 'Ex'
x_stress = 'sx'
xy_strain = 'Exy'
xy_stress = 'sxy'
xz_strain = 'Exz'
xz_stress = 'sxz'
y_coordinate = 'y'
y_flux = 'wy'
y_strain = 'Ey'
y_stress = 'sy'
yz_strain = 'Eyz'
yz_stress = 'syz'
z_coordinate = 'z'
z_flux = 'wz'
z_strain = 'Ez'
z_stress = 'sz'
class pyfebio.output.NodeDataEnum(*values)

Bases: str, Enum

fluid_pressure = 'p'
x_acceleration = 'ax'
x_coordinate = 'x'
x_displacement = 'ux'
x_reaction_force = 'Rx'
x_velocity = 'vx'
y_acceleration = 'ay'
y_coordinate = 'y'
y_displacement = 'uy'
y_reaction_force = 'Ry'
y_velocity = 'vy'
z_acceleration = 'az'
z_coordinate = 'z'
z_displacement = 'uz'
z_reaction_force = 'Rz'
z_velocity = 'vz'
class pyfebio.output.Output(*, logfile=[], plotfile=[])

Bases: BaseXmlModel

add_logfile(new_logfile)
add_plotfile(new_plotfile)
logfile: list[OutputLogfile]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

plotfile: list[OutputPlotfile]
class pyfebio.output.OutputLogfile(*, file=None, node_data=[], element_data=[], face_data=[], rigid_body_data=[], rigid_connector_data=[])

Bases: BaseXmlModel

add_element_data(new_output)
add_face_data(new_output)
add_node_data(new_output)
add_rigid_body_data(new_output)
add_rigid_connector_data(new_output)
element_data: list[DataEntry]
face_data: list[DataEntry]
file: str | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

node_data: list[DataEntry]
rigid_body_data: list[DataEntry]
rigid_connector_data: list[DataEntry]
class pyfebio.output.OutputPlotfile(*, type='febio', file=None, all_vars=[])

Bases: BaseXmlModel

add_var(new_var)
all_vars: list[Var]
file: str | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['febio', 'vtk']
class pyfebio.output.RigidBodyDataEnum(*values)

Bases: str, Enum

x_acceleration = 'ax'
x_angular_acceleration = 'alx'
x_angular_velocity = 'omx'
x_coordinate = 'x'
x_euler = 'XEuler'
x_force = 'Fx'
x_moment = 'Mx'
x_rotation = 'thx'
x_velocity = 'vx'
y_acceleration = 'ay'
y_angular_acceleration = 'aly'
y_angular_velocity = 'omy'
y_coordinate = 'y'
y_euler = 'YEuler'
y_force = 'Fy'
y_moment = 'My'
y_rotation = 'thy'
y_velocity = 'vy'
z_acceleration = 'az'
z_angular_acceleration = 'alz'
z_angular_velocity = 'omz'
z_coordinate = 'z'
z_euler = 'ZEuler'
z_force = 'Fz'
z_moment = 'Mz'
z_rotation = 'thz'
z_velocity = 'vz'
class pyfebio.output.RigidConnectorDataEnum(*values)

Bases: str, Enum

x_force = 'RCFx'
x_moment = 'RCMx'
x_rotation = 'RCthx'
x_translation = 'RCx'
y_force = 'RCFy'
y_moment = 'RCMy'
y_rotation = 'RCthy'
y_translation = 'RCy'
z_force = 'RCFz'
z_moment = 'RCMz'
z_rotation = 'RCthz'
z_translation = 'RCz'
class pyfebio.output.Var(*, type)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

type: Literal['acceleration', 'Almansi strain', 'beam curvature', 'beam reference stress', 'beam reference stress couple', 'beam strain', 'beam stress', 'beam stress couple', 'body force', 'concentration gap', 'contact area', 'contact force', 'contact gap', 'contact penalty', 'contact pressure', 'contact status', 'contact stick', 'contact traction', 'continuous damage', 'continuous damage beta', 'continuous damage D1', 'continuous damage D2', 'continuous damage D2beta', 'continuous damage D3', 'continuous damage Ds', 'continuous damage gamma', 'continuous damage P', 'continuous damage Psi0', 'current density', 'current element angular momentum', 'current element center of mass', 'current element kinetic energy', 'current element linear momentum', 'current element strain energy', 'damage', 'deformation gradient', 'density', 'Deshpande-Fleck stress', 'deviatoric elasticity', 'deviatoric fiber stretch', 'deviatoric strain energy density', 'deviatoric strong bond SED', 'deviatoric weak bond SED', 'dilatation gradient', 'discrte element direction', 'discrete element elongation', 'discrete element force', 'discrete element length', 'discrete element percent elongation', 'discrete element signed force', 'discrete element strain energy', 'discrete element stretch', 'displacement', 'Drucker shear stress', 'Drucker-Prager stress', 'edge contact gap', 'effective elasticity', 'effective fluid pressure', 'effective friction coefficient', 'effective shell fluid pressure', 'effective shell solute concentration', 'effective solute concentration', 'elastic fluid pressure', 'elasticity', 'electric potential', 'element angular momentum', 'element center of mass', 'element kinetic energy', 'element linear momentum', 'element strain energy', 'element stress power', 'enclosed volume', 'enclosed volume change', 'Euler angle', 'facet area', 'fatigue bone fraction', 'fiber stretch', 'fiber vector', 'field', 'fixed charge density', 'fluid acceleration', 'fluid body force', 'fluid bulk modulus', 'fluid density', 'fluid density rate', 'fluid dilatation', 'fluid element angular momentum', 'fluid element center of mass', 'fluid element kinetic energy', 'fluid element linear momentum', 'fluid element strain energy', 'fluid energy density', 'fluid flow rate', 'fluid flux', 'fluid force', 'fluid force2', 'fluid heat supply density', 'fluid kinetic energy density', 'fluid load support', 'fluid mass flow rate', 'fluid pressure', 'fluid pressure tangent strain', 'fluid rate of deformation', 'fluid relative Reynolds number', 'fluid shear stress error', 'fluid shear viscosity', 'fluid specific entropy', 'fluid specific free energy', 'fluid specific free enthalpy', 'fluid specific gauge enthalpy', 'fluid specific internal energy', 'fluid specific strain energy', 'fluid strain energy density', 'fluid stress', 'fluid stress power density', 'fluid surface energy flux', 'fluid surface force', 'fluid surface pressure', 'fluid surface traction power', 'fluid velocity', 'fluid volume ratio', 'fluid volume ratio gradient', 'fluid vorticity', 'growth infinitesimal strain', 'growth Lagrange strain', 'growth left Hencky', 'growth left stretch', 'growth relative volume', 'growth right Hencky', 'growth right stretch', 'ideal gas pressure', 'incremental displacement', 'infinitesimal strain', 'in-situ target stretch', 'intact bond fraction', 'kinetic energy density', 'Lagrange strain', 'left Cauchy-Green', 'left Hencky', 'left stretch', 'local fluid load support', 'material axes', 'mesh_data', 'micro energy', 'mixture deviatoric strain energy density', 'mixture specific strain energy', 'mixture strain energy density', 'mixture stress', 'nodal acceleration', 'nodal contact gap', 'nodal contact pressure', 'nodal contact traction', 'nodal fluid flux', 'nodal fluid velocity', 'nodal shell director', 'nodal strain', 'nodal stress', 'nodal surface traction', 'nodal vector gap', 'nodal veleocity', 'octahedral plastic strain', 'osmolarity', 'osmotic coefficient', 'parameter', 'partition coefficient', 'permeability', 'pid controller', 'PK1 norm', 'PK1 stress', 'PK2 stress', 'plastic yield stress', 'plasticity heat supply density', 'porosity', 'pressure gap', 'prestrain compatibility', 'prestrain correction', 'prestrain stretch', 'prestrain stretch error', 'rate of deformation', 'reaction forces', 'receptor-ligand', 'referential fixed charge density', 'referential solid volume fraction', 'relative fluid velocity', 'relative volume', 'right Cauchy-Green', 'right Hencky', 'right stretch', 'rigid acceleration', 'rigid angular momentum', 'rigid angular position', 'rigid angular velocity', 'rigid force', 'rigid kinetic energy', 'rigid linear momentum', 'rigid position', 'rigid rotation vector', 'rigid torque', 'rigid velocity', 'rotation', 'RVE generations', 'RVE recruitment', 'RVE strain', 's norm', 'sbm areal concentration', 'sbm concentration', 'sbm referential apparent density', 'scalar surface load', 'shell bottom nodal strain', 'shell bottom nodal stress', 'shell bottom strain', 'shell bottom stress', 'shell director', 'shell displacement', 'shell relative volume', 'shell strain', 'shell thickness', 'shell top nodal strain', 'shell top nodal stress', 'shell top strain', 'shell top stress', 'solid stress', 'solid volume fraction', 'solute concentration', 'solute flux', 'solute relative Peclet number', 'solute volumetric flux', 'specific strain energy', 'SPR infinitesimal strain', 'SPR Lagrange strain', 'SPR prestrain correction', 'SPR principal stress', 'SPR relative volume', 'SPR stress', 'SPR-P1 stress', 'strain energy density', 'stress', 'stress error', 'strong bond SED', 'surface area', 'surface reaction force', 'surface reaction moment', 'surface traction', 'total angular momentum', 'total energy', 'total linear momentum', 'truss stretch', 'uncoupled pressure', 'ut4 nodal stress', 'vector gap', 'velocity', 'volume fraction', 'weak bond SED', 'yielded bond fraction']
pyfebio.output.assemble_data_string(requests)
Return type:

str

pyfebio.rigid module

class pyfebio.rigid.Free(*, text=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Literal[0]
class pyfebio.rigid.Rigid(*, all_rigid_bcs=[], all_rigid_loads=[], all_rigid_connectors=[], all_rigid_initial_conditions=[])

Bases: BaseXmlModel

add_rigid_bc(new_rigid_bc)
add_rigid_connector(new_rigid_connector)
add_rigid_initial_condition(new_rigid_initial_condition)
add_rigid_load(new_rigid_load)
all_rigid_bcs: list[RigidFixed | RigidPrescribed | RigidBodyRotationVector | RigidBodyEulerAngle]
all_rigid_connectors: list[RigidSphericalJoint | RigidRevoluteJoint | RigidCylindricalJoint | RigidPrismaticJoint | RigidPlanarJoint | RigidLock | RigidSpring | RigidDamper | RigidAngularDamper | RigidContractileForce]
all_rigid_initial_conditions: list[RigidInitialVelocity | RigidInitialAngularVelocity]
all_rigid_loads: list[RigidForceLoad | RigidFollowerForceLoad | RigidMomentLoad | RigidFollowerMomentLoad | RigidCableLoad]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.rigid.RigidAngularDamper(*, type='rigid angular damper', name, body_a, body_b, c=1e-07)

Bases: BaseXmlModel

body_a: str
body_b: str
c: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['rigid angular damper']
class pyfebio.rigid.RigidBodyEulerAngle(*, type='rigid_euler_angles', rb, Ex, Ey, Ez)

Bases: BaseXmlModel

Ex: X
Ey: Y
Ez: Z
class X(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class Y(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class Z(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
type: Literal['rigid_euler_angles']
class pyfebio.rigid.RigidBodyRotationVector(*, type='rigid_rotation_vector', rb, vx, vy, vz)

Bases: BaseXmlModel

class X(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class Y(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
class Z(*, lc, text=0.0)

Bases: BaseXmlModel

lc: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
type: Literal['rigid_rotation_vector']
vx: X
vy: Y
vz: Z
class pyfebio.rigid.RigidCableLoad(*, type='rigid_cable', force_direction, relative=1, force, rigid_cable_point=[])

Bases: BaseXmlModel

class CablePoint(*, rigid_body_id, position)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

position: str
rigid_body_id: str
force: Value
force_direction: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

relative: Literal[0, 1]
rigid_cable_point: list[CablePoint]
type: Literal['rigid_cable']
class pyfebio.rigid.RigidConnector(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1)

Bases: BaseXmlModel

angtol: Union[Literal[0], float]
auto_penalty: Literal[0, 1]
body_a: str
body_b: str
force_penalty: float
gaptol: Union[Literal[0], float]
maxaug: int
minaug: int
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

moment_penalty: float
name: str
tolerance: float
class pyfebio.rigid.RigidContractileForce(*, type='rigid contractile force', name, body_a, body_b, insertion_a='0.0,0.0,0.0', insertion_b='1.0,0.0,0.0', f0)

Bases: BaseXmlModel

body_a: str
body_b: str
f0: Value
insertion_a: str
insertion_b: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['rigid contractile force']
class pyfebio.rigid.RigidCylindricalJoint(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid cylindrical joint', laugon='PENALTY', joint_origin='0.0,0.0,0.0', joint_axis='0.0,0.0,0.0', transverse_axis='0.0,0.0,0.0', prescribed_rotation=0, prescribed_translation=0, translation=Free(text=0), force=Free(text=0), rotation=Free(text=0), moment=Free(text=0))

Bases: RigidConnector

force: Value | Free
joint_axis: str
joint_origin: str
laugon: Literal['PENALTY', 'AUGLAG', 'LAGMULT']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

moment: Value | Free
prescribed_rotation: Literal[0, 1]
prescribed_translation: Literal[0, 1]
rotation: Value | Free
translation: Value | Free
transverse_axis: str
type: Literal['rigid cylindrical joint']
class pyfebio.rigid.RigidDamper(*, type='rigid damper', name, body_a, body_b, c=1e-07, insertion_a='0.0,0.0,0.0', insertion_b='1.0,0.0,0.0')

Bases: BaseXmlModel

body_a: str
body_b: str
c: float
insertion_a: str
insertion_b: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['rigid damper']
class pyfebio.rigid.RigidFixed(*, type='rigid_fixed', rb, Rx_dof=0, Ry_dof=0, Rz_dof=0, Ru_dof=0, Rv_dof=0, Rw_dof=0)

Bases: BaseXmlModel

Ru_dof: Literal[0, 1]
Rv_dof: Literal[0, 1]
Rw_dof: Literal[0, 1]
Rx_dof: Literal[0, 1]
Ry_dof: Literal[0, 1]
Rz_dof: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
type: Literal['rigid_fixed']
class pyfebio.rigid.RigidFollowerForceLoad(*, type='rigid_follower_force', rb, insertion, relative=0, force)

Bases: BaseXmlModel

force: Value
insertion: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
relative: Literal[0, 1]
type: Literal['rigid_follower_force']
class pyfebio.rigid.RigidFollowerMomentLoad(*, type='rigid_follower_moment', rb, moment)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

moment: Value
rb: str
type: Literal['rigid_follower_moment']
class pyfebio.rigid.RigidForceLoad(*, type='rigid_force', rb, dof, relative=0, load_type=0, value)

Bases: BaseXmlModel

dof: Literal['Rx', 'Ry', 'Rz']
load_type: Literal[0, 1, 2]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
relative: Literal[0, 1]
type: Literal['rigid_force']
value: Value
class pyfebio.rigid.RigidInitialAngularVelocity(*, type='initial_rigid_angular_velocity', rb, value='0.0,0.0,0.0')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
type: Literal['initial_rigid_angular_velocity']
value: str
class pyfebio.rigid.RigidInitialVelocity(*, type='initial_rigid_velocity', rb, value='0.0,0.0,0.0')

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
type: Literal['initial_rigid_velocity']
value: str
class pyfebio.rigid.RigidLock(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid lock', joint_origin='0.0,0.0,0.0', first_axis='1.0,0.0,0.0', second_axis='0.0,1.0,0.0')

Bases: RigidConnector

first_axis: str
joint_origin: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

second_axis: str
type: Literal['rigid lock']
class pyfebio.rigid.RigidMomentLoad(*, type='rigid_moment', rb, dof, relative=0, value)

Bases: BaseXmlModel

dof: Literal['Ru', 'Rv', 'Rw']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
relative: Literal[0, 1]
type: Literal['rigid_moment']
value: Value
class pyfebio.rigid.RigidPlanarJoint(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid planar joint', joint_origin='0.0,0.0,0.0', rotation_axis='0.0,0.0,0.0', translation_axis_1='0.0,0.0,0.0', prescribed_rotation=0, prescribed_translation_1=0, prescribed_translation_2=0, rotation=Free(text=0), translation_1=Free(text=0), translation_2=Free(text=0))

Bases: RigidConnector

joint_origin: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

prescribed_rotation: Literal[0, 1]
prescribed_translation_1: Literal[0, 1]
prescribed_translation_2: Literal[0, 1]
rotation: Value | Free
rotation_axis: str
translation_1: Value | Free
translation_2: Value | Free
translation_axis_1: str
type: Literal['rigid planar joint']
class pyfebio.rigid.RigidPrescribed(*, type='rigid_displacement', rb, dof, relative=0, value)

Bases: BaseXmlModel

dof: Literal['x', 'y', 'z', 'Ru', 'Rv', 'Rw']
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

rb: str
relative: Literal[0, 1]
type: Literal['rigid_displacement', 'rigid_rotation']
validate_type()
value: Value
class pyfebio.rigid.RigidPrismaticJoint(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid prismatic joint', joint_origin='0.0,0.0,0.0', translation_axis='1.0,0.0,0.0', transverse_axis='0.0,1.0,0.0', prescribed_translation=0, translation=Free(text=0), force=Free(text=0))

Bases: RigidConnector

force: Value | Free
joint_origin: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

prescribed_translation: Literal[0, 1]
translation: Value | Free
translation_axis: str
transverse_axis: str
type: Literal['rigid prismatic joint']
class pyfebio.rigid.RigidRevoluteJoint(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid revolute joint', laugon=0, joint_origin='0.0,0.0,0.0', prescribed_rotation=0, rotation_axis='1.0,0.0,0.0', transverse_axis='0.0,1.0,0.0', moment=Free(text=0), rotation=Free(text=0))

Bases: RigidConnector

class Free(*, text=0)

Bases: BaseXmlModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Literal[0]
joint_origin: str
laugon: Literal[0, 1]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

moment: Value | Free
prescribed_rotation: Literal[0, 1]
rotation: Value | Free
rotation_axis: str
transverse_axis: str
type: Literal['rigid revolute joint']
class pyfebio.rigid.RigidSphericalJoint(*, name, body_a, body_b, tolerance=0.1, minaug=0, maxaug=10, gaptol=0, angtol=0, force_penalty=1, moment_penalty=1, auto_penalty=1, type='rigid spherical joint', joint_origin='0.0,0.0,0.0', prescribed_rotation=0, rotation_x=Free(text=0), rotation_y=Free(text=0), rotation_z=Free(text=0), moment_x=Free(text=0), moment_y=Free(text=0), moment_z=Free(text=0))

Bases: RigidConnector

joint_origin: str
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

moment_x: Value | Free
moment_y: Value | Free
moment_z: Value | Free
prescribed_rotation: Literal[0, 1]
rotation_x: Value | Free
rotation_y: Value | Free
rotation_z: Value | Free
type: Literal['rigid spherical joint']
class pyfebio.rigid.RigidSpring(*, type='rigid spring', name, body_a, body_b, k=1, insertion_a='0.0,0.0,0.0', insertion_b='1.0,0.0,0.0', free_length=0)

Bases: BaseXmlModel

body_a: str
body_b: str
free_length: Union[Literal[0], float]
insertion_a: str
insertion_b: str
k: float
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: Literal['rigid spring']
class pyfebio.rigid.Value(*, lc=None, text=1.0)

Bases: BaseXmlModel

lc: int | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

text: Union[float, str]

pyfebio.step module

class pyfebio.step.Step(*, all_steps=[])

Bases: BaseXmlModel

add_step(new_step)
all_steps: list[StepEntry]
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyfebio.step.StepEntry(*, id, name='Step', control=None, initial=None, boundary=None, loads=None, constraints=None, contact=None, rigid=None)

Bases: BaseXmlModel

boundary: Boundary | None
constraints: Constraints | None
contact: Contact | None
control: Control | None
id: int
initial: Initial | None
loads: Loads | None
model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
rigid: Rigid | None

pyfebio.xplt module

This module converts XPLT files to HDF5. It can be run from the command line with:

python -m pyfebio.xplt [path/to/xplt_file] Optional[path/to/hdf5_output]

If the output path is not provided it will be set to [path/to/xplt_file] with the extension changed to .hdf5

To use in a script:

from pyfebio import xplt

xplt.to_hdf5("/path/to/xplt_file", "/path/to/hdf5_output")

Note that the xplt module is not imported by default with the pyfebio package, but must be imported explicitly as above.

We reference:

https://github.com/febiosoftware/FEBioStudio/blob/master/XPLTLib/xpltReader3.h commit: 7c7f171

as:

xpltReader3.h:LINE_NUMBER

class pyfebio.xplt.DicItem(name, itype, iformat, array_size, units=None)

Bases: object

array_size: int
iformat: int
itype: int
name: str
units: str | None = None
class pyfebio.xplt.Xtag(name, pyname, format='int32')

Bases: object

format: Literal['float32', 'uint32', 'int32', 'szname', 'node'] = 'int32'
name: str
pyname: str
pyfebio.xplt.check_file_is_febio(buffer)
pyfebio.xplt.dtypes_to_little_endian(_DTYPES)

Uncommon these days, but if your XPLT file was created on a big-_ENDIAN machine, this will do a byte swap to little-_ENDIAN for all _DTYPES

Note: szname being a byte string type will be unchanged

pyfebio.xplt.parse_blocks(buffer, f)
pyfebio.xplt.parse_dictionary(buffer)
Return type:

dict[str, list[DicItem]]

pyfebio.xplt.parse_elementset_section(buffer)
pyfebio.xplt.parse_mesh(buffer, mesh_cnt, f)
pyfebio.xplt.parse_nodeset_section(buffer)
pyfebio.xplt.parse_objects_section(buffer)
pyfebio.xplt.parse_parts_section(buffer)
pyfebio.xplt.parse_prefix(buffer)
Return type:

tuple[int, int]

pyfebio.xplt.parse_root_header(buffer, f)
pyfebio.xplt.parse_state(buffer, state_cnt, xdictionary, mesh_dict, f)
pyfebio.xplt.to_hdf5(inputfile, outputfile=None)

Module contents