Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65151856
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
Sat, Jun 1, 06:19
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jun 3, 06:19 (2 d)
Engine
blob
Format
Raw Data
Handle
18013077
Attached To
R9484 sp4e-homework-lars-bertil
material_points_factory.hh
View Options
#ifndef __MATERIAL_POINTS_FACTORY__HH__
#define __MATERIAL_POINTS_FACTORY__HH__
/* -------------------------------------------------------------------------- */
#include "material_point.hh"
#include "particles_factory_interface.hh"
/* -------------------------------------------------------------------------- */
//! Factory for material points
class
MaterialPointsFactory
:
public
ParticlesFactoryInterface
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
private
:
MaterialPointsFactory
()
{
createComputes
=
[
&
](
Real
timestep
)
{
this
->
createDefaultComputes
(
timestep
);
};
};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
SystemEvolution
&
createSimulation
(
const
std
::
string
&
fname
,
Real
timestep
)
override
;
void
createDefaultComputes
(
Real
timestep
);
std
::
unique_ptr
<
Particle
>
createParticle
()
override
;
static
ParticlesFactoryInterface
&
getInstance
();
};
/* -------------------------------------------------------------------------- */
#endif
//__MATERIAL_POINTS_FACTORY__HH__
Event Timeline
Log In to Comment