My Project
programmer's documentation
cs_paramedmem_remapper.hxx
Go to the documentation of this file.
1 #ifndef __CS_PARAMEDMEM_REMAPPER_HXX__
2 #define __CS_PARAMEDMEM_REMAPPER_HXX__
3 
4 /*============================================================================
5  * Parallel interpolation using ParaMEDMEM OverlapDEC
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2019 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------
29  * Local headers
30  *----------------------------------------------------------------------------*/
31 
32 #include "cs_defs.h"
33 
34 /*----------------------------------------------------------------------------*/
35 
37 
38 #if defined(HAVE_MEDCOUPLING_LOADER)
39 
40 typedef struct _cs_paramedmem_remapper_t cs_paramedmem_remapper_t;
41 
42 /*----------------------------------------------------------------------------*/
53 /*----------------------------------------------------------------------------*/
54 
55 cs_paramedmem_remapper_t *
56 cs_paramedmem_remapper_create(char *name,
57  const char *sel_criteria,
58  char *fileName,
59  char *meshName,
60  cs_real_t center[3],
61  cs_real_t radius);
62 
63 /*----------------------------------------------------------------------------*/
83 /*----------------------------------------------------------------------------*/
84 
85 cs_real_t *
86 cs_paramedmem_remap_field(cs_paramedmem_remapper_t *r,
87  char *fieldName,
88  cs_real_t dval,
89  int time_choice,
90  double tval);
91 
92 /*----------------------------------------------------------------------------*/
100 /*----------------------------------------------------------------------------*/
101 
102 cs_paramedmem_remapper_t *
103 cs_paramedmem_remapper_by_name_try(const char *name);
104 
105 /*----------------------------------------------------------------------------*/
112 /*----------------------------------------------------------------------------*/
113 
114 void
115 cs_paramedmem_remapper_translate(cs_paramedmem_remapper_t *r,
116  cs_real_t translation[3]);
117 
118 /*----------------------------------------------------------------------------*/
127 /*----------------------------------------------------------------------------*/
128 
129 void
130 cs_paramedmem_remapper_rotate(cs_paramedmem_remapper_t *r,
131  cs_real_t invariant[3],
132  cs_real_t axis[3],
133  cs_real_t angle);
134 
135 /*----------------------------------------------------------------------------*/
139 /*----------------------------------------------------------------------------*/
140 
141 void
142 cs_paramedmem_remapper_destroy_all(void);
143 
144 /*----------------------------------------------------------------------------*/
145 
146 #endif // HAVE_MEDCOUPLING_LOADER
147 
149 
150 #endif /* __CS_PARAMEDMEM_REMAPPER_HXX__ */
cs_defs.h
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467