Description
Helper class for compounding material data from two materials into one single data structure.
#include <ChMaterial3DStressParallel.h>


Public Member Functions | |
| ChFieldDataParallel (std::unique_ptr< ChFieldData > data_A, std::unique_ptr< ChFieldData > data_B) | |
| virtual ChFieldData * | GetNthSubData (int n) override |
| Optionally, a ChFieldData could have children ChFieldData objects, like a tree structure. More... | |
Public Member Functions inherited from chrono::fea::ChFieldData | |
| template<typename VisitorFunc > | |
| void | VisitTree (VisitorFunc &&visitor) |
| template<typename VisitorFunc > | |
| void | ForEach (VisitorFunc &&visitor) |
Public Attributes | |
| std::unique_ptr< ChFieldData > | data_A |
| std::unique_ptr< ChFieldData > | data_B |
Member Function Documentation
◆ GetNthSubData()
|
inlineoverridevirtual |
Optionally, a ChFieldData could have children ChFieldData objects, like a tree structure.
This can be useful in cases when one has a compound material like plastic law + viscous law, each willing to introduce their own ChFieldData per material point, hence per each material point the viscoplastic material will generate a ChFieldDataCompound with two children: a ChFieldDataForPlasticity and a ChFieldDataForViscosity, for example. When using ChFieldData in a ChField, instead, we require that there are no sub data. Return nullptr for n=0 to tell that there are no sub data.
Reimplemented from chrono::fea::ChFieldData.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/fea/multiphysics/ChMaterial3DStressParallel.h
Public Member Functions inherited from