33 # pragma warning(push)
34 # pragma warning(disable: 4251)
39 class MaterialManager;
47 class GeometryContact;
88 Real getDensity()
const;
98 Real getYoungsModulus()
const;
104 void setPoissonsRatio(
Real value);
110 Real getPoissonsRatio() const;
116 Real getDamping() const;
138 bool setMinMaxElasticRestLength(
Real minElasticRestLength,
Real maxElasticRestLength);
146 Real getMinElasticRestLength() const;
154 Real getMaxElasticRestLength() const;
163 void setViscosity(
Real viscosity );
168 Real getViscosity() const;
173 bool isDirty() const;
184 const Physics::BulkMaterialPtr&
getEntity() const;
223 Real getRoughness()
const;
239 Real getAdhesion()
const;
244 Real getAdhesiveOverlap()
const;
256 Real getViscosity()
const;
262 bool getFrictionEnabled()
const;
284 Physics::SurfaceMaterialPtr&
getEntity();
286 const Physics::SurfaceMaterialPtr&
getEntity() const;
291 void setDirty(
bool flag ) const;
316 Real getYoungsModulusStretch()
const;
321 Real getDampingStretch()
const;
326 Real getYoungsModulusBend()
const;
331 Real getDampingBend()
const;
337 void setYoungsModulusStretch(
Real youngsStretch );
343 void setDampingStretch(
Real dampingStretch );
349 void setYoungsModulusBend(
Real youngsBend );
355 void setDampingBend(
Real dampingBend );
362 bool isDirty() const;
363 void setDirty(
bool flag) const;
370 const Physics::WireMaterialPtr&
getEntity() const;
451 m_entity.name() = name;
462 bool isDirty() const;
470 bool loadLibraryMaterial(
agx::
String name );
483 bool isLibraryMaterial() const;
490 const Physics::MaterialPtr&
getEntity() const;
508 void setDirty(
bool flag ) const;
534 BOTH_PRIMARY_AND_SECONDARY
607 Real getAdhesion()
const;
612 Real getAdhesiveOverlap()
const;
617 Real getRestitution()
const;
637 bool getSurfaceFrictionEnabled()
const;
648 Real getYoungsModulus()
const ;
692 Real getDamping()
const ;
707 const Material* getMaterial1()
const;
712 const Material* getMaterial2()
const;
717 bool isExplicit()
const;
743 agx::UInt8 getContactReductionBinResolution()
const;
757 bool getUseContactAreaApproach()
const;
778 agx::Real getRollingResistanceCoefficient()
const;
804 agx::Real getRollingResistanceCompliance()
const;
809 agx::Real getTwistingResistanceCompliance()
const;
857 void transfer(
agxData::EntityStorage* storage );
862 Physics::ContactMaterialPtr&
getEntity();
864 const Physics::ContactMaterialPtr&
getEntity() const;
871 enum class RestitutionCoefficient
890 void setDefaultParameters();
895 void setIsExplicit(
bool is_explicit );
913 return m_entity.frictionEnabled();
918 return m_entity.roughness();
923 return m_entity.adhesion();
928 return m_entity.adhesiveOverlap();
933 return m_entity.viscosity();
939 return m_entity.dirty();
944 m_entity.dirty() = flag;
951 return m_entity.dirty();
956 m_entity.dirty() = flag;
962 return m_entity.youngsModulusStretch();
967 return m_entity.dampingStretch();
972 return m_entity.youngsModulusBend();
977 return m_entity.dampingBend();
983 m_entity.youngsModulusStretch() = youngsStretch;
989 m_entity.dampingStretch() = dampingStretch;
995 m_entity.youngsModulusBend() = youngsBend;
1001 m_entity.dampingBend() = dampingBend;
1007 return m_entity.viscosity();
1012 return m_entity.poissonsRatio();
1017 return m_entity.damping();
1022 return m_entity.youngsModulus();
1027 return m_entity.density();
1032 return m_entity.dirty();
1038 m_entity.dirty() = flag;
1045 return m_surfaceMaterial;
1050 return m_surfaceMaterial;
1055 return m_bulkMaterial;
1060 return m_bulkMaterial;
1065 return m_wireMaterial;
1070 return m_wireMaterial;
1076 return m_surfaceMaterial->
isDirty() || m_bulkMaterial->isDirty() || m_wireMaterial->isDirty();
1081 m_surfaceMaterial->setDirty(flag);
1082 m_bulkMaterial->setDirty(flag);
1083 m_wireMaterial->setDirty(flag);
1090 return m_entity.name();
1101 return m_entity.friction()[ agx::clamp< int >( direction, 0, 1 ) ];
1106 return m_entity.viscosity()[ agx::clamp< int >( direction, 0, 1 ) ];
1111 return m_entity.adhesion();
1116 return m_entity.adhesiveOverlap();
1121 return m_entity.surfaceFrictionEnabled();
1126 return m_entity.youngsModulus();
1131 return m_entity.damping();
1136 return m_frictionModel;
1141 return m_entity.isExplicit();
1161 return m_entity.contactReductionBinResolution();
1221 return m_entity.rollingResistanceCoefficient();
1226 return m_entity.rollingResistanceCompliance();
1231 return m_entity.twistingResistanceCompliance();
1236 return m_entity.impactCompliance();
1241 return m_entity.useContactAreaApproach();
1246 return m_entity.wireFriction()[ agx::clamp< int >( direction, 0, 1 ) ];
1251 # pragma warning(pop)
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Physical properties for the bulk of geometries made up by a Material.
void setYoungsModulus(Real value)
Set the Young's modulus of the material, same as spring coefficient k.
Real getYoungsModulus() const
BulkMaterial()
Default constructor.
Real getDensity() const
Get the density of a material.
void setDensity(Real density)
Set the density of a material.
Real getDamping() const
This is the damping factor that is used by the contact constraint.
Real getPoissonsRatio() const
Real getViscosity() const
Base class for all friction models with interface and some utility/necessary methods implemented.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Material(const agx::Name &name, Real restitution, Real friction)
Construct a material from friction and restitution values.
Material(const agx::Name &name, const Material *parent=nullptr)
Constructor.
void setName(const agx::Name &name)
Set the name of the material.
static Material * getDefaultMaterial()
WireMaterial * getWireMaterial()
Material(const Material &material)
Copy constructor.
SurfaceMaterial * getSurfaceMaterial()
BulkMaterial * getBulkMaterial()
Representation of a name string.
Base class providing referencing counted objects.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Physical properties for the surface of a Material.
void setViscosity(Real viscosity)
Set the viscosity parameter of this surface.
Real getAdhesiveOverlap() const
void setAdhesion(Real adhesion, Real adhesiveOverlap)
Set the adhesive force and allowed overlap between two colliding objects.
SurfaceMaterial()
Default constructor.
Real getViscosity() const
Real getRoughness() const
void setRoughness(Real roughness)
Set the roughness parameter.
void setFrictionEnabled(bool flag)
Specify if the friction should be used when solving contacts for this Material.
Physical properties for the contact between a Geometry and an agx::Wire.
void setYoungsModulusBend(Real youngsBend)
Set the Young's modulus controlling the bend resistance of a wire.
void setDampingStretch(Real dampingStretch)
Set the damping in wire stretch constraints.
Real getDampingBend() const
WireMaterial()
Default constructor.
Real getDampingStretch() const
Real getYoungsModulusBend() const
void setYoungsModulusStretch(Real youngsStretch)
Set the Young's modulus controlling the stretchiness of a wire.
void setDampingBend(Real dampingBend)
Assign damping in wire bend constraints.
#define AGX_DEPRECATED(since)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Contains classes for low level data storage for AGX.
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
The agxIO namespace contains classes for reading, writing and finding files.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Vector< agx::ref_ptr< agx::ContactMaterial > > ContactMaterialRefVector
void AGXPHYSICS_EXPORT init()
Initialize agx.
agx::SetVector< agx::ref_ptr< agx::ContactMaterial > > ContactMaterialRefSetVector