SPH
Public Member Functions | Public Attributes | List of all members
CustomMaterial Struct Reference
Inheritance diagram for CustomMaterial:
NullMaterial IMaterial Polymorphic

Public Member Functions

 CustomMaterial ()
 
- Public Member Functions inherited from NullMaterial
 NullMaterial (const BodySettings &body)
 
virtual void create (Storage &UNUSED(storage), const MaterialInitialContext &UNUSED(context)) override
 
virtual void initialize (IScheduler &UNUSED(scheduler), Storage &UNUSED(storage), const IndexSequence UNUSED(sequence)) override
 
virtual void finalize (IScheduler &UNUSED(scheduler), Storage &UNUSED(storage), const IndexSequence UNUSED(sequence)) override
 
- Public Member Functions inherited from IMaterial
 IMaterial (const BodySettings &settings)
 
template<typename TValue >
INLINE IMaterialsetParam (const BodySettingsId paramIdx, TValue &&value)
 
template<typename TValue >
INLINE TValue getParam (const BodySettingsId paramIdx) const
 Returns a parameter associated with given particle. More...
 
INLINE const BodySettingsgetParams () const
 Returns settings containing material parameters. More...
 
void setRange (const QuantityId id, const Interval &range, const Float minimal)
 Sets the timestepping parameters of given quantity. More...
 
INLINE void setRange (const QuantityId id, const BodySettingsId rangeId, const BodySettingsId minimalId)
 Sets the timestepping parameters of given quantity. More...
 
INLINE Float minimal (const QuantityId id) const
 Returns the scale value of the quantity. More...
 
INLINE const Interval range (const QuantityId id) const
 Returns the range of allowed quantity values. More...
 
virtual void create (Storage &storage, const MaterialInitialContext &context)=0
 Create all quantities needed by the material. More...
 
virtual void initialize (IScheduler &scheduler, Storage &storage, const IndexSequence sequence)=0
 Initialize all quantities and material parameters. More...
 
virtual void finalize (IScheduler &scheduler, Storage &storage, const IndexSequence sequence)=0
 Finalizes the material for the time step. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Public Attributes

Float temperature
 
Float conductivity
 
Float density
 
Float heatCapacity
 
Float albedo
 

Additional Inherited Members

- Protected Attributes inherited from IMaterial
BodySettings params
 Per-material parameters. More...
 
FlatMap< QuantityId, Floatminimals
 Minimal values used in timestepping, do not affect values of quantities themselves. More...
 
FlatMap< QuantityId, Intervalranges
 Allowed range of quantities. More...
 
- Static Protected Attributes inherited from IMaterial
static const Interval DEFAULT_RANGE = Interval::unbounded()
 Default values. More...
 
static const Float DEFAULT_MINIMAL = 0._f
 

Detailed Description

Definition at line 12 of file HeatDiffusion.cpp.

Constructor & Destructor Documentation

◆ CustomMaterial()

CustomMaterial::CustomMaterial ( )
inline

Definition at line 30 of file HeatDiffusion.cpp.

Member Data Documentation

◆ albedo

Float CustomMaterial::albedo

Definition at line 28 of file HeatDiffusion.cpp.

◆ conductivity

Float CustomMaterial::conductivity

Definition at line 18 of file HeatDiffusion.cpp.

◆ density

Float CustomMaterial::density

Definition at line 22 of file HeatDiffusion.cpp.

◆ heatCapacity

Float CustomMaterial::heatCapacity

Definition at line 25 of file HeatDiffusion.cpp.

◆ temperature

Float CustomMaterial::temperature

Definition at line 15 of file HeatDiffusion.cpp.


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