Line data Source code
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 "ElementPairInfo.h" 11 : 12 0 : ElementPairInfo::ElementPairInfo(const Elem * elem1, 13 : const Elem * elem2, 14 : const std::vector<Point> & elem1_constraint_q_point, 15 : const std::vector<Point> & elem2_constraint_q_point, 16 : const std::vector<Real> & elem1_constraint_JxW, 17 : const std::vector<Real> & elem2_constraint_JxW, 18 : const Point & elem1_normal, 19 0 : const Point & elem2_normal) 20 0 : : _elem1(elem1), 21 0 : _elem2(elem2), 22 0 : _elem1_constraint_q_point(elem1_constraint_q_point), 23 0 : _elem2_constraint_q_point(elem2_constraint_q_point), 24 0 : _elem1_constraint_JxW(elem1_constraint_JxW), 25 0 : _elem2_constraint_JxW(elem2_constraint_JxW), 26 0 : _elem1_normal(elem1_normal), 27 0 : _elem2_normal(elem2_normal) 28 : { 29 0 : } 30 : 31 0 : ElementPairInfo::~ElementPairInfo() {} 32 : 33 : void 34 0 : ElementPairInfo::update(const std::vector<Point> & elem1_constraint_q_point, 35 : const std::vector<Point> & elem2_constraint_q_point, 36 : const std::vector<Real> & elem1_constraint_JxW, 37 : const std::vector<Real> & elem2_constraint_JxW, 38 : const Point & elem1_normal, 39 : const Point & elem2_normal) 40 : { 41 0 : _elem1_constraint_q_point = elem1_constraint_q_point; 42 0 : _elem2_constraint_q_point = elem2_constraint_q_point; 43 0 : _elem1_constraint_JxW = elem1_constraint_JxW; 44 0 : _elem2_constraint_JxW = elem2_constraint_JxW; 45 0 : _elem1_normal = elem1_normal; 46 0 : _elem2_normal = elem2_normal; 47 0 : }