Skip to main content

PeriDigmSettings

C++: phynexis::peridigm::PeriDigmSettings
Python: phynexis.peridigm.PeriDigmSettings
Header: src/peridigm/peridigm_settings.hpp

Description

Simulation settings for a peridynamic run. Controls timestep computation, horizon sizing, output frequency, and result directory paths. Settings are written to the Peridigm input file by write_input_file().

Constructors

PeriDigmSettings()

Creates settings with sensible defaults.

Example:

import phynexis
settings = phynexis.peridigm.PeriDigmSettings()
print(settings.horizon_factor, settings.use_auto_timestep)

Output:

3.01 True

Methods

write_input_file(os)

Writes the complete solver, compute class, and output sections to a stream in Peridigm-compatible format.

Parameters:

ParameterTypeDescription
osfile-likeOutput stream

Properties

PropertyTypeDefaultAccessDescription
result_dirstr"tmp/out/peridigm/"read/writeOutput directory
peridigm_exestr"Peridigm"read/writeExecutable name
horizon_factorfloat3.01read/writeHorizon = node_size × factor
use_auto_timestepboolTrueread/writeUse automatic timestep
timestepfloat1.0e-6read/writeFixed timestep (if auto is off)
timestep_factorfloat0.95read/writeSafety factor for auto timestep
mech_timefloat0.0read/writeSimulation mechanical time
loading_radius_factorfloat1.5read/writeContact loading radius multiplier
constrain_radius_factorfloat1.5read/writeContact constraint radius multiplier
output_freqencyint10read/writeOutput write frequency