NetDEM v1.0
Loading...
Searching...
No Matches
netdem::PeriDigmBlock Class Reference

A class that represents a Peridigm block. More...

#include <peridigm_block.hpp>

Public Member Functions

void WriteInputFile (std::ostream &os, int block_id)
 Writes the input file for the block to the given output stream.
 

Public Attributes

VecXT< int > node_indices
 The indices of the nodes in the block.
 
int material_id
 The ID of the material associated with the block.
 
int damage_model_id
 The ID of the damage model associated with the block.
 
double horizon
 The horizon used for neighbor search in the block.
 

Detailed Description

A class that represents a Peridigm block.

This class represents a Peridigm block, which is a group of nodes that share the same material properties and damage model. The nodes are identified by their indices in the discretized domain.

Member Function Documentation

◆ WriteInputFile()

void netdem::PeriDigmBlock::WriteInputFile ( std::ostream & os,
int block_id )
inline

Writes the input file for the block to the given output stream.

This method writes the input file for the block to the given output stream in the format expected by Peridigm. It includes the block ID, the names of the block and its associated material and damage models, and the horizon value.

Parameters
osThe output stream to write the input file to.
block_idThe ID of the block to write the input file for.

Member Data Documentation

◆ damage_model_id

int netdem::PeriDigmBlock::damage_model_id

The ID of the damage model associated with the block.

◆ horizon

double netdem::PeriDigmBlock::horizon

The horizon used for neighbor search in the block.

◆ material_id

int netdem::PeriDigmBlock::material_id

The ID of the material associated with the block.

◆ node_indices

VecXT<int> netdem::PeriDigmBlock::node_indices

The indices of the nodes in the block.


The documentation for this class was generated from the following file: