Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Transfer_2n.h
Go to the documentation of this file.
1 /* *******************************************************************
2  * Rocstar Simulation Suite *
3  * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4  * *
5  * Illinois Rocstar LLC *
6  * Champaign, IL *
7  * www.illinoisrocstar.com *
8  * sales@illinoisrocstar.com *
9  * *
10  * License: See LICENSE file in top level of distribution package or *
11  * http://opensource.org/licenses/NCSA *
12  *********************************************************************/
13 /* *******************************************************************
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21  * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22  *********************************************************************/
23 // $Id: Transfer_2n.h,v 1.7 2008/12/06 08:43:27 mtcampbe Exp $
24 
25 //===================================================================
26 // This file contains the prototypes for transfering data from nodes
27 // to nodes and from faces to nodes.
28 //
29 // Author: Xiangmin Jiao
30 // Revision: June 15, 2001
31 //===================================================================
32 
33 #ifndef __TRANSFER_2N_H_
34 #define __TRANSFER_2N_H_
35 
36 #include "rfc_basic.h"
37 #include "Transfer_base.h"
38 
40 
42 class Transfer_n2n : public Transfer_base {
43  typedef Transfer_n2n Self;
45 
46 public:
49  : Base(s, t) {}
50 
61  void transfer( const Nodal_data_const &sf, Nodal_data &tf,
62  const Real alpha, Real *t, int *iter, int doa, bool ver);
63 
72  void comp_loads( const Nodal_data_const &sf, Nodal_data &tf,
73  const Real alpha, const int doa, bool verb);
74 };
75 
77 class Transfer_f2n : public Transfer_base {
78  typedef Transfer_f2n Self;
80 
81  public:
84  : Base(s, t) {}
85 
89  void transfer( const Facial_data_const &sf, Nodal_data &tf,
90  const Real alpha, Real *tol, int *iter, int doa,
91  bool verb);
92 
96  void comp_loads( const Facial_data_const &sf, Nodal_data &tf,
97  const Real alpha, const int order, bool verb);
98 };
99 
101 class Interpolator : public Transfer_base {
104 
105 public:
108  : Base(s, t) {}
109 
115  void transfer( const Nodal_data_const &sf, Nodal_data &tf, bool verb);
116 };
117 
119 
120 #endif // __TRANSFER_2N_H_
121 
122 
123 
124 
125 
126 
Transfer_f2n Self
Definition: Transfer_2n.h:78
void transfer(const Nodal_data_const &sf, Nodal_data &tf, const Real alpha, Real *t, int *iter, int doa, bool ver)
The main entry to the data transfer algorithm.
Definition: Transfer_2n.C:456
Specialization for transfering from faces to nodes.
Definition: Transfer_2n.h:77
Specialization for transfering from nodes to nodes.
Definition: Transfer_2n.h:42
double s
Definition: blastest.C:80
Interpolator Self
Definition: Transfer_2n.h:102
Transfer_n2n(RFC_Window_transfer *s, RFC_Window_transfer *t)
Constructor.
Definition: Transfer_2n.h:48
double Real
Definition: mapbasic.h:322
Transfer_f2n(RFC_Window_transfer *s, RFC_Window_transfer *t)
Constructor.
Definition: Transfer_2n.h:83
Transfer_n2n Self
Definition: Transfer_2n.h:43
Transfer_base Base
Definition: Transfer_2n.h:79
#define RFC_END_NAME_SPACE
Definition: rfc_basic.h:29
Specialization for transfering nodal forces using Farhat's algorithm.
Definition: Transfer_2n.h:101
#define RFC_BEGIN_NAME_SPACE
Definition: rfc_basic.h:28
Transfer_base Base
Definition: Transfer_2n.h:103
Transfer_base Base
Definition: Transfer_2n.h:44
void transfer(const Facial_data_const &sf, Nodal_data &tf, const Real alpha, Real *tol, int *iter, int doa, bool verb)
The main entry to the data transfer algorithm.
Definition: Transfer_2n.C:463
void comp_loads(const Facial_data_const &sf, Nodal_data &tf, const Real alpha, const int order, bool verb)
Compute the nodal load vector.
Definition: Transfer_2n.C:526
void transfer(const Nodal_data_const &sf, Nodal_data &tf, bool verb)
The main entry to the data transfer algorithm.
Definition: Transfer_2n.C:470
Interpolator(RFC_Window_transfer *s, RFC_Window_transfer *t)
Constructor.
Definition: Transfer_2n.h:107
void comp_loads(const Nodal_data_const &sf, Nodal_data &tf, const Real alpha, const int doa, bool verb)
Compute the nodal load vector.
Definition: Transfer_2n.C:519