https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EFAVolumeNode.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 "EFAVolumeNode.h"
11
12#include "EFANode.h"
13#include "EFAError.h"
14
15EFAVolumeNode::EFAVolumeNode(EFANode * node, double xi, double eta, double zeta)
16 : _node(node), _xi(xi), _eta(eta), _zeta(zeta)
17{
18}
19
21 : _node(other_vol_node._node),
22 _xi(other_vol_node._xi),
23 _eta(other_vol_node._eta),
24 _zeta(other_vol_node._zeta)
25{
26}
27
29
30EFANode *
32{
33 return _node;
34}
35
36double
38{
39 double coord = -100.0;
40 if (i == 0)
41 coord = _xi;
42 else if (i == 1)
43 coord = _eta;
44 else if (i == 2)
45 coord = _zeta;
46 else
47 EFAError("in getParametricCoordinates: input out of bounds");
48
49 return coord;
50}
51
52void
54{
55 if (_node == old_node)
56 _node = new_node;
57}
Point eta
Point xi
EFANode * _node
double getParametricCoordinates(unsigned int i)
void switchNode(EFANode *new_old, EFANode *old_node)
EFAVolumeNode(EFANode *node, double xi, double eta, double zeta)
EFANode * getNode()