FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmMaterialProperty.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FM_MATERIAL_PROPERTY_H
9 #define FM_MATERIAL_PROPERTY_H
10 
12 
13 
15 {
17 
18 public:
20 
21  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
22  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
23  virtual bool clone(FmBase* obj, int depth);
24 
25  virtual const char* getUITypeName() const { return "Material"; }
26 
27  bool updateProperties(double d, double e, double g, double v = -1.0);
28 
29 protected:
30  virtual ~FmMaterialProperty();
31 
32  virtual bool cloneLocal(FmBase* obj, int depth);
33 
34 public:
39 };
40 
41 #endif
Base class for all objects that affect the simulation model.
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmMaterialProperty.H:15
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmMaterialProperty.C:48
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmMaterialProperty.C:32
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmMaterialProperty.C:54
FFaField< double > G
Shear modulus.
Definition: FmMaterialProperty.H:38
FFaField< double > Rho
Mass density.
Definition: FmMaterialProperty.H:35
FFaField< double > nu
Poisson's ratio.
Definition: FmMaterialProperty.H:37
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmMaterialProperty.H:25
FmMaterialProperty()
Definition: FmMaterialProperty.C:15
bool updateProperties(double d, double e, double g, double v=-1.0)
Definition: FmMaterialProperty.C:71
virtual ~FmMaterialProperty()
Definition: FmMaterialProperty.C:26
FFaField< double > E
Young's modulus.
Definition: FmMaterialProperty.H:36
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Base class for structural property objects without physical shape.
Definition: FmSimulationModelBase.H:84