5 #if !defined(KRATOS_NANOPARTICLE_H_INCLUDED )
6 #define KRATOS_NANOPARTICLE_H_INCLUDED
31 mThicknessOverRadius = 0.01;
40 return SphericParticle::Pointer(
new NanoParticle(NewId, GetGeometry().
Create(ThisNodes), pProperties));
50 virtual std::string
Info()
const override
52 std::stringstream buffer;
53 buffer <<
"NanoParticle" ;
58 virtual void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"NanoParticle";}
61 virtual void PrintData(std::ostream& rOStream)
const override {}
62 void Initialize(
const ProcessInfo& r_process_info)
override;
69 void MemberDeclarationFirstStep(
const ProcessInfo& r_process_info)
override;
71 double CalculateVolume()
override;
73 double GetInteractionRadius(
const int radius_index = 0)
override;
74 void SetInteractionRadius(
const double radius,
const int radius_index = 0)
override;
75 void SetDefaultRadiiHierarchy(
const double radius)
override;
88 virtual void save(
Serializer& rSerializer)
const override
99 NanoParticle(NanoParticle
const& rOther)
114 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::size_t IndexType
Definition: flags.h:74
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
Definition: nanoparticle.h:19
double mInteractionRadius
Definition: nanoparticle.h:82
NanoParticle(IndexType NewId, NodesArrayType const &ThisNodes)
Definition: nanoparticle.h:35
double mThicknessOverRadius
Definition: nanoparticle.h:81
NanoParticle()
Definition: nanoparticle.h:29
NanoParticle(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: nanoparticle.h:36
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: nanoparticle.h:61
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: nanoparticle.h:38
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: nanoparticle.h:58
virtual std::string Info() const override
Turn back information as a string.
Definition: nanoparticle.h:50
double GetCationConcentration()
NanoParticle(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: nanoparticle.h:34
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(NanoParticle)
Pointer definition of NanoParticle.
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Definition: spheric_particle.h:31
virtual double GetDensity()
Definition: spheric_particle.cpp:2214
double mRadius
Definition: spheric_particle.h:442
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
float radius
Definition: mesh_to_mdpa_converter.py:18
def load(f)
Definition: ode_solve.py:307