Skip to main content

PeriDigmBlock

C++: phynexis::peridigm::PeriDigmBlock
Python: phynexis.peridigm.PeriDigmBlock
Header: src/peridigm/peridigm_block.hpp

Description

Represents a peridynamic block: a group of nodes that share the same material and damage model.

Constructors

PeriDigmBlock()

Creates an empty block with default property values.

Example:

import phynexis
block = phynexis.peridigm.PeriDigmBlock()
print(block.material_id, block.damage_model_id)

Output:

0 0

Methods

write_input_file(os, block_id)

Writes the block definition to a stream in Peridigm input format.

Parameters:

ParameterTypeDescription
osfile-likeOutput stream
block_idintBlock index

Properties

PropertyTypeAccessDescription
node_indiceslist[int]read/writeIndices of nodes in this block
material_idintread/writeIndex of the material
damage_model_idintread/writeIndex of the damage model
horizonfloatread/writeHorizon for neighbor search