ViennaGrid for Python
 All Classes Files Functions Variables
linear.hpp
Go to the documentation of this file.
1 
6 #ifndef FIELDS_LINEAR_HPP
7 #define FIELDS_LINEAR_HPP
8 
9 #include "types.hpp"
10 
11 #include "../vertices/linear.hpp"
12 #include "../cells/linear.hpp"
13 
14 /*****************
15  * VERTEX FIELDS *
16  *****************/
17 
27  LinearCartesian1D_VertexField_Container_t container;
28 
33  LinearCartesian1D_Vertex_Field_t *field;
34 public:
35  LinearCartesian1D_Vertex_Field(double default_value);
37 
46  double get_value(LinearCartesian1D_Vertex &vertex);
47 
56  void set_value(LinearCartesian1D_Vertex &vertex, double new_value);
57 
58  LinearCartesian1D_Vertex_Field_t & get_field();
59 };
60 
70  LinearCartesian2D_VertexField_Container_t container;
71 
76  LinearCartesian2D_Vertex_Field_t *field;
77 public:
78  LinearCartesian2D_Vertex_Field(double default_value);
80 
89  double get_value(LinearCartesian2D_Vertex &vertex);
90 
99  void set_value(LinearCartesian2D_Vertex &vertex, double new_value);
100 
101  LinearCartesian2D_Vertex_Field_t & get_field();
102 };
103 
113  LinearCartesian3D_VertexField_Container_t container;
114 
119  LinearCartesian3D_Vertex_Field_t *field;
120 public:
121  LinearCartesian3D_Vertex_Field(double default_value);
123 
132  double get_value(LinearCartesian3D_Vertex &vertex);
133 
142  void set_value(LinearCartesian3D_Vertex &vertex, double new_value);
143 
144  LinearCartesian3D_Vertex_Field_t & get_field();
145 };
146 
156  LinearCylindrical3D_VertexField_Container_t container;
157 
162  LinearCylindrical3D_Vertex_Field_t *field;
163 public:
164  LinearCylindrical3D_Vertex_Field(double default_value);
166 
175  double get_value(LinearCylindrical3D_Vertex &vertex);
176 
185  void set_value(LinearCylindrical3D_Vertex &vertex, double new_value);
186 
187  LinearCylindrical3D_Vertex_Field_t & get_field();
188 };
189 
199  LinearPolar2D_VertexField_Container_t container;
200 
205  LinearPolar2D_Vertex_Field_t *field;
206 public:
207  LinearPolar2D_Vertex_Field(double default_value);
209 
218  double get_value(LinearPolar2D_Vertex &vertex);
219 
228  void set_value(LinearPolar2D_Vertex &vertex, double new_value);
229 
230  LinearPolar2D_Vertex_Field_t & get_field();
231 };
232 
242  LinearSpherical3D_VertexField_Container_t container;
243 
248  LinearSpherical3D_Vertex_Field_t *field;
249 public:
250  LinearSpherical3D_Vertex_Field(double default_value);
252 
261  double get_value(LinearSpherical3D_Vertex &vertex);
262 
271  void set_value(LinearSpherical3D_Vertex &vertex, double new_value);
272 
273  LinearSpherical3D_Vertex_Field_t & get_field();
274 };
275 
276 /***************
277  * CELL FIELDS *
278  ***************/
279 
289  LinearCartesian1D_CellField_Container_t container;
290 
295  LinearCartesian1D_Cell_Field_t *field;
296 public:
297  LinearCartesian1D_Cell_Field(double default_value);
299 
308  double get_value(LinearCartesian1D_Cell &cell);
309 
318  void set_value(LinearCartesian1D_Cell &cell, double new_value);
319 
320  LinearCartesian1D_Cell_Field_t & get_field();
321 };
322 
332  LinearCartesian2D_CellField_Container_t container;
333 
338  LinearCartesian2D_Cell_Field_t *field;
339 public:
340  LinearCartesian2D_Cell_Field(double default_value);
342 
351  double get_value(LinearCartesian2D_Cell &cell);
352 
361  void set_value(LinearCartesian2D_Cell &cell, double new_value);
362 
363  LinearCartesian2D_Cell_Field_t & get_field();
364 };
365 
375  LinearCartesian3D_CellField_Container_t container;
376 
381  LinearCartesian3D_Cell_Field_t *field;
382 public:
383  LinearCartesian3D_Cell_Field(double default_value);
385 
394  double get_value(LinearCartesian3D_Cell &cell);
395 
404  void set_value(LinearCartesian3D_Cell &cell, double new_value);
405 
406  LinearCartesian3D_Cell_Field_t & get_field();
407 };
408 
418  LinearCylindrical3D_CellField_Container_t container;
419 
424  LinearCylindrical3D_Cell_Field_t *field;
425 public:
426  LinearCylindrical3D_Cell_Field(double default_value);
428 
437  double get_value(LinearCylindrical3D_Cell &cell);
438 
447  void set_value(LinearCylindrical3D_Cell &cell, double new_value);
448 
449  LinearCylindrical3D_Cell_Field_t & get_field();
450 };
451 
461  LinearPolar2D_CellField_Container_t container;
462 
467  LinearPolar2D_Cell_Field_t *field;
468 public:
469  LinearPolar2D_Cell_Field(double default_value);
471 
480  double get_value(LinearPolar2D_Cell &cell);
481 
490  void set_value(LinearPolar2D_Cell &cell, double new_value);
491 
492  LinearPolar2D_Cell_Field_t & get_field();
493 };
494 
504  LinearSpherical3D_CellField_Container_t container;
505 
510  LinearSpherical3D_Cell_Field_t *field;
511 public:
512  LinearSpherical3D_Cell_Field(double default_value);
514 
523  double get_value(LinearSpherical3D_Cell &cell);
524 
533  void set_value(LinearSpherical3D_Cell &cell, double new_value);
534 
535  LinearSpherical3D_Cell_Field_t & get_field();
536 };
537 
538 #endif /* end of include guard: FIELDS_LINEAR_HPP */