PeriDyno 1.0.0
Loading...
Searching...
No Matches
GridSet.cpp
Go to the documentation of this file.
1#include "GridSet.h"
2
3
4namespace dyno
5{
6 IMPLEMENT_TCLASS(GridSet, TDataType)
7
8 template<typename TDataType>
10 {
11 m_dx = 1.0;
12 m_origin = Coord(0.0, 0.0, 0.0);
13 m_ni = 0;
14 m_nj = 0;
15 m_nk = 0;
16 }
17
18 template<typename TDataType>
22
23 template<typename TDataType>
24 void GridSet<TDataType>::setUniGrid(int ni, int nj, int nk, Real dxmm, Coord lo_center)
25 {
26 m_ni = ni;
27 m_nj = nj;
28 m_nk = nk;
29 m_dx = dxmm;
30 m_origin = lo_center;
31 }
32
33 template<typename TDataType>
34 void GridSet<TDataType>::setNijk(int ni, int nj, int nk)
35 {
36 m_ni = ni;
37 m_nj = nj;
38 m_nk = nk;
39 }
40
42}
#define DEFINE_CLASS(name)
Definition Object.h:140
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
void setUniGrid(int ni, int nj, int nk, Real dxmm, Coord lo_center)
Definition GridSet.cpp:24
TDataType::Coord Coord
Definition GridSet.h:27
void setNijk(int ni, int nj, int nk)
Definition GridSet.cpp:34
TDataType::Real Real
Definition GridSet.h:26
Coord m_origin
Definition GridSet.h:45
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25