ViennaGrid for Python
 All Classes Files Functions Variables
triangular.hpp
Go to the documentation of this file.
1 
6 #ifndef FIELDS_TRIANGULAR_HPP
7 #define FIELDS_TRIANGULAR_HPP
8 
9 #include "types.hpp"
10 
11 #include "../vertices/triangular.hpp"
12 #include "../cells/triangular.hpp"
13 
14 /*****************
15  * VERTEX FIELDS *
16  *****************/
17 
27  TriangularCartesian2D_VertexField_Container_t container;
28 
33  TriangularCartesian2D_Vertex_Field_t *field;
34 public:
35  TriangularCartesian2D_Vertex_Field(double default_value);
37 
47 
56  void set_value(TriangularCartesian2D_Vertex &vertex, double new_value);
57 
58  TriangularCartesian2D_Vertex_Field_t & get_field();
59 };
60 
70  TriangularCartesian3D_VertexField_Container_t container;
71 
76  TriangularCartesian3D_Vertex_Field_t *field;
77 public:
78  TriangularCartesian3D_Vertex_Field(double default_value);
80 
90 
99  void set_value(TriangularCartesian3D_Vertex &vertex, double new_value);
100 
101  TriangularCartesian3D_Vertex_Field_t & get_field();
102 };
103 
113  TriangularCylindrical3D_VertexField_Container_t container;
114 
119  TriangularCylindrical3D_Vertex_Field_t *field;
120 public:
121  TriangularCylindrical3D_Vertex_Field(double default_value);
123 
133 
142  void set_value(TriangularCylindrical3D_Vertex &vertex, double new_value);
143 
144  TriangularCylindrical3D_Vertex_Field_t & get_field();
145 };
146 
156  TriangularPolar2D_VertexField_Container_t container;
157 
162  TriangularPolar2D_Vertex_Field_t *field;
163 public:
164  TriangularPolar2D_Vertex_Field(double default_value);
166 
175  double get_value(TriangularPolar2D_Vertex &vertex);
176 
185  void set_value(TriangularPolar2D_Vertex &vertex, double new_value);
186 
187  TriangularPolar2D_Vertex_Field_t & get_field();
188 };
189 
199  TriangularSpherical3D_VertexField_Container_t container;
200 
205  TriangularSpherical3D_Vertex_Field_t *field;
206 public:
207  TriangularSpherical3D_Vertex_Field(double default_value);
209 
218  double get_value(TriangularSpherical3D_Vertex &vertex);
219 
228  void set_value(TriangularSpherical3D_Vertex &vertex, double new_value);
229 
230  TriangularSpherical3D_Vertex_Field_t & get_field();
231 };
232 
233 /***************
234  * CELL FIELDS *
235  ***************/
236 
246  TriangularCartesian2D_CellField_Container_t container;
247 
252  TriangularCartesian2D_Cell_Field_t *field;
253 public:
254  TriangularCartesian2D_Cell_Field(double default_value);
256 
266 
275  void set_value(TriangularCartesian2D_Cell &cell, double new_value);
276 
277  TriangularCartesian2D_Cell_Field_t & get_field();
278 };
279 
289  TriangularCartesian3D_CellField_Container_t container;
290 
295  TriangularCartesian3D_Cell_Field_t *field;
296 public:
297  TriangularCartesian3D_Cell_Field(double default_value);
299 
309 
318  void set_value(TriangularCartesian3D_Cell &cell, double new_value);
319 
320  TriangularCartesian3D_Cell_Field_t & get_field();
321 };
322 
332  TriangularCylindrical3D_CellField_Container_t container;
333 
338  TriangularCylindrical3D_Cell_Field_t *field;
339 public:
340  TriangularCylindrical3D_Cell_Field(double default_value);
342 
352 
361  void set_value(TriangularCylindrical3D_Cell &cell, double new_value);
362 
363  TriangularCylindrical3D_Cell_Field_t & get_field();
364 };
365 
375  TriangularPolar2D_CellField_Container_t container;
376 
381  TriangularPolar2D_Cell_Field_t *field;
382 public:
383  TriangularPolar2D_Cell_Field(double default_value);
385 
394  double get_value(TriangularPolar2D_Cell &cell);
395 
404  void set_value(TriangularPolar2D_Cell &cell, double new_value);
405 
406  TriangularPolar2D_Cell_Field_t & get_field();
407 };
408 
418  TriangularSpherical3D_CellField_Container_t container;
419 
424  TriangularSpherical3D_Cell_Field_t *field;
425 public:
426  TriangularSpherical3D_Cell_Field(double default_value);
428 
438 
447  void set_value(TriangularSpherical3D_Cell &cell, double new_value);
448 
449  TriangularSpherical3D_Cell_Field_t & get_field();
450 };
451 
452 #endif /* end of include guard: FIELDS_TRIANGULAR_HPP */