TimeAveragedLebedevCG.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef TimeAveragedLebedevCG_H
6 #define TimeAveragedLebedevCG_H
7 
8 #include <CG/TimeAveragedCG.h>
9 
10 template<template<class> class BaseFunction, class Fields = CGFields::StandardFields>
11 class TimeAveragedLebedevCG : public TimeAveragedCGXYZ<BaseFunction, Fields>
12 {
13 public:
14 
16 
21  TimeAveragedLebedevCG() = default;
22 
27 
32 
36  void createMesh() override;
37 
38 
43 
47  double getRadiusInner();
48 
52  double getRadiusOuter();
53 
57  int getNR();
58 
62  void setR(double radiusInner, double radiusOuter);
63 
67  void setNR(int nR);
68 
72  void evaluate();
73 
78 
83 
84 private:
88  double radiusInner_;
89  double radiusOuter_;
90  int nR_;
91 };
92 
94 
95 #endif
int i
Definition: BiCGSTAB_step_by_step.cpp:9
float * p
Definition: Tutorial_Map_using.cpp:9
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Contains the computed field values, like density, momentum and stress.
Definition: StandardFields.h:33
Combines the position of the CGPoint (e.g. x, y, z), the parameters of the coarse-graining function (...
Definition: CGPoint.h:24
Specialisation of TimeAveragedCG with coordinates XYZ used for LebedevCG.
Definition: TimeAveragedCG.h:110
Definition: TimeAveragedLebedevCG.h:12
TimeAveragedLebedevCG()=default
Default constructor. Only sets the evaluation functions, no points are created initially.
int getNR()
Returns the number of grid points in r-direction.
int nR_
Definition: TimeAveragedLebedevCG.h:90
void evaluateParticle(BaseParticle &p)
Evaluates the contributions of a particle.
double radiusOuter_
Definition: TimeAveragedLebedevCG.h:89
CGPoint< CGCoordinates::XYZ, Fields > Point
Definition: TimeAveragedLebedevCG.h:15
void createMesh() override
Creates a mesh based on Lebedev quadrature points.
void evaluateContact(BaseInteraction &i)
Evaluates the contribution of an interaction.
void setR(double radiusInner, double radiusOuter)
Sets the inner and outer radius of the mesh.
double getRadiusOuter()
Returns the outer radius of the grid.
TimeAveragedLebedevCG< BaseFunction, Fields > * copy() const
Creates a copy of the current instance.
double getRadiusInner()
Returns the inner radius of the grid.
double radiusInner_
Definition: TimeAveragedLebedevCG.h:88
void evaluate()
Evaluates CG fields.
virtual ~TimeAveragedLebedevCG()
Default destructor; does nothing.
void setNR(int nR)
Sets the number of mesh points in the r-direction.
TimeAveragedLebedevCG(const TimeAveragedLebedevCG &p)=default
Default copy Constructor; copies all the member variables.