www.mooseframework.org
EFAVolumeNode.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "EFAVolumeNode.h"
9 
10 #include "EFANode.h"
11 #include "EFAError.h"
12 
13 EFAVolumeNode::EFAVolumeNode(EFANode * node, double xi, double eta, double zeta)
14  : _node(node), _xi(xi), _eta(eta), _zeta(zeta)
15 {
16 }
17 
19  : _node(other_vol_node._node),
20  _xi(other_vol_node._xi),
21  _eta(other_vol_node._eta),
22  _zeta(other_vol_node._zeta)
23 {
24 }
25 
27 
28 EFANode *
30 {
31  return _node;
32 }
33 
34 double
36 {
37  double coord = -100.0;
38  if (i == 0)
39  coord = _xi;
40  else if (i == 1)
41  coord = _eta;
42  else if (i == 2)
43  coord = _zeta;
44  else
45  EFAError("in getParametricCoordinates: input out of bounds");
46 
47  return coord;
48 }
49 
50 void
51 EFAVolumeNode::switchNode(EFANode * new_node, EFANode * old_node)
52 {
53  if (_node == old_node)
54  _node = new_node;
55 }
double getParametricCoordinates(unsigned int i)
Definition: EFAVolumeNode.C:35
void switchNode(EFANode *new_old, EFANode *old_node)
Definition: EFAVolumeNode.C:51
EFAVolumeNode(EFANode *node, double xi, double eta, double zeta)
Definition: EFAVolumeNode.C:13
EFANode * _node
Definition: EFAVolumeNode.h:22
EFANode * getNode()
Definition: EFAVolumeNode.C:29