forked from ClimateGlobalChange/tempestremap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LinearRemapFV.h
105 lines (92 loc) · 2.84 KB
/
LinearRemapFV.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
///////////////////////////////////////////////////////////////////////////////
///
/// \file LinearRemapFV.h
/// \author Paul Ullrich
/// \version September 1, 2014
///
/// <remarks>
/// Copyright 2000-2014 Paul Ullrich
///
/// This file is distributed as part of the Tempest source code package.
/// Permission is granted to use, copy, modify and distribute this
/// source code and its documentation under the terms of the GNU General
/// Public License. This software is provided "as is" without express
/// or implied warranty.
/// </remarks>
#ifndef _LINEARREMAPFV_H_
#define _LINEARREMAPFV_H_
#include "DataMatrix3D.h"
///////////////////////////////////////////////////////////////////////////////
class Mesh;
class OfflineMap;
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Generate the OfflineMap for remapping from finite volumes to finite
/// volumes.
/// </summary>
void LinearRemapFVtoFV(
const Mesh & meshInput,
const Mesh & meshOutput,
const Mesh & meshOverlap,
int nOrder,
OfflineMap & mapRemap
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Generate the OfflineMap for remapping from finite volumes to finite
/// elements using simple sampling of the FV reconstruction.
/// </summary>
void LinearRemapFVtoGLL_Simple(
const Mesh & meshInput,
const Mesh & meshOutput,
const Mesh & meshOverlap,
const DataMatrix3D<int> & dataGLLNodes,
const DataMatrix3D<double> & dataGLLJacobian,
const DataVector<double> & dataGLLNodalArea,
int nOrder,
OfflineMap & mapRemap,
bool fMonotone,
bool fContinuous
);
///////////////////////////////////////////////////////////////////////////////
/// <summary>
/// Generate the OfflineMap for remapping from finite volumes to finite
/// elements.
/// </summary>
void LinearRemapFVtoGLL(
const Mesh & meshInput,
const Mesh & meshOutput,
const Mesh & meshOverlap,
const DataMatrix3D<int> & dataGLLNodes,
const DataMatrix3D<double> & dataGLLJacobian,
const DataVector<double> & dataGLLNodalArea,
int nOrder,
OfflineMap & mapRemap,
bool fMonotone,
bool fContinuous
);
///////////////////////////////////////////////////////////////////////////////
/*
/// <summary>
/// Generate the OfflineMap for remapping from finite elements to finite
/// elements.
/// </summary>
void LinearRemapGLLtoGLL(
const Mesh & meshInput,
const Mesh & meshOutput,
const Mesh & meshOverlap,
const DataMatrix3D<int> & dataGLLNodesIn,
const DataMatrix3D<double> & dataGLLJacobianIn,
const DataMatrix3D<int> & dataGLLNodesOut,
const DataMatrix3D<double> & dataGLLJacobianOut,
const DataVector<double> & dataNodalAreaOut,
int nPin,
int nPout,
OfflineMap & mapRemap,
bool fMonotone,
bool fContinuousIn,
bool fContinuousOut
);
*/
///////////////////////////////////////////////////////////////////////////////
#endif