www.mooseframework.org
EFAFaceNode.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 "EFAFaceNode.h"
9 
10 #include "EFANode.h"
11 #include "EFAError.h"
12 
13 EFAFaceNode::EFAFaceNode(EFANode * node, double xi, double eta) : _node(node), _xi(xi), _eta(eta) {}
14 
15 EFAFaceNode::EFAFaceNode(const EFAFaceNode & other_face_node)
16  : _node(other_face_node._node), _xi(other_face_node._xi), _eta(other_face_node._eta)
17 {
18 }
19 
21 
22 EFANode *
24 {
25  return _node;
26 }
27 
28 double
30 {
31  double coord = -100.0;
32  if (i == 0)
33  coord = _xi;
34  else if (i == 1)
35  coord = _eta;
36  else
37  EFAError("get_getParametricCoordinates input out of bounds");
38 
39  return coord;
40 }
41 
42 void
43 EFAFaceNode::switchNode(EFANode * new_node, EFANode * old_node)
44 {
45  if (_node == old_node)
46  _node = new_node;
47 }
double getParametricCoordinates(unsigned int i)
Definition: EFAFaceNode.C:29
double _eta
Definition: EFAFaceNode.h:24
double _xi
Definition: EFAFaceNode.h:23
EFANode * _node
Definition: EFAFaceNode.h:22
void switchNode(EFANode *new_old, EFANode *old_node)
Definition: EFAFaceNode.C:43
EFANode * getNode()
Definition: EFAFaceNode.C:23
EFAFaceNode(EFANode *node, double xi, double eta)
Definition: EFAFaceNode.C:13