https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EFAFaceNode.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#include "EFAFaceNode.h"
11
12#include "EFANode.h"
13#include "EFAError.h"
14
15EFAFaceNode::EFAFaceNode(EFANode * node, double xi, double eta) : _node(node), _xi(xi), _eta(eta) {}
16
17EFAFaceNode::EFAFaceNode(const EFAFaceNode & other_face_node)
18 : _node(other_face_node._node), _xi(other_face_node._xi), _eta(other_face_node._eta)
19{
20}
21
23
24EFANode *
26{
27 return _node;
28}
29
30double
32{
33 double coord = -100.0;
34 if (i == 0)
35 coord = _xi;
36 else if (i == 1)
37 coord = _eta;
38 else
39 EFAError("get_getParametricCoordinates input out of bounds");
40
41 return coord;
42}
43
44void
46{
47 if (_node == old_node)
48 _node = new_node;
49}
Point eta
Point xi
EFAFaceNode(EFANode *node, double xi, double eta)
Definition EFAFaceNode.C:15
double getParametricCoordinates(unsigned int i)
Definition EFAFaceNode.C:31
void switchNode(EFANode *new_old, EFANode *old_node)
Definition EFAFaceNode.C:45
double _eta
Definition EFAFaceNode.h:25
EFANode * getNode()
Definition EFAFaceNode.C:25
EFANode * _node
Definition EFAFaceNode.h:23