Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73948293
material_points_factory.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 25, 10:44
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Jul 27, 10:44 (2 d)
Engine
blob
Format
Raw Data
Handle
19303584
Attached To
R7571 SP4E-TB-TL-FR
material_points_factory.hh
View Options
#ifndef __MATERIAL_POINTS_FACTORY__HH__
#define __MATERIAL_POINTS_FACTORY__HH__
/* -------------------------------------------------------------------------- */
#include "particles_factory_interface.hh"
#include "material_point.hh"
/* -------------------------------------------------------------------------- */
//! Factory for material points
/**
This class is meant to be used as the interface through which the user can initialize a collection of M
aterialPoint objects and then run a simulation to compute the spatio-temporal evolution of temperature across these points.
To this effect, it inherits from the generic ParticlesFactoryInterface and redefines the createParticle and createSimulation
methods in the specific context of material points (e.g. making sure that number of points is square at initialization).
*/
class MaterialPointsFactory : public ParticlesFactoryInterface {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
private:
MaterialPointsFactory() = default;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
SystemEvolution& createSimulation(const std::string& fname,
Real timestep) override;
std::unique_ptr<Particle> createParticle() override;
static ParticlesFactoryInterface& getInstance();
};
/* -------------------------------------------------------------------------- */
#endif //__MATERIAL_POINTS_FACTORY__HH__
Event Timeline
Log In to Comment