programmer's documentation
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
mesh
cs_mesh_to_builder.h
Go to the documentation of this file.
1
#ifndef __CS_MESH_TO_BUILDER_H__
2
#define __CS_MESH_TO_BUILDER_H__
3
4
/*============================================================================
5
* Define cs_mesh_builder_t fields from cs_mesh_t fields.
6
*============================================================================*/
7
8
/*
9
This file is part of Code_Saturne, a general-purpose CFD tool.
10
11
Copyright (C) 1998-2013 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
30
/*----------------------------------------------------------------------------
31
* Local headers
32
*----------------------------------------------------------------------------*/
33
34
#include "
cs_defs.h
"
35
36
#include "
fvm_group.h
"
37
#include "
fvm_selector.h
"
38
#include "
fvm_periodicity.h
"
39
40
#include "
cs_base.h
"
41
42
#include "
cs_io.h
"
43
#include "
cs_mesh.h
"
44
#include "
cs_mesh_builder.h
"
45
#include "
cs_part_to_block.h
"
46
47
/*----------------------------------------------------------------------------*/
48
49
BEGIN_C_DECLS
50
51
/*=============================================================================
52
* Macro definitions
53
*============================================================================*/
54
55
/*============================================================================
56
* Type definitions
57
*============================================================================*/
58
59
/*============================================================================
60
* Static global variables
61
*============================================================================*/
62
63
/*=============================================================================
64
* Public function prototypes
65
*============================================================================*/
66
67
/*----------------------------------------------------------------------------
68
* Transfer mesh to mesh builder structure.
69
*
70
* As the dataflow is very similar, but may be done array-by array to minimize
71
* memory overhead, this function also handles a part of the output
72
* to file needed to save a mesh file.
73
*
74
* parameters:
75
* mesh <-> pointer to mesh structure
76
* mb <-> pointer to mesh builder structure
77
* transfer <-- if true, data is transferred from mesh to builder;
78
* if false, builder fields are only used as a temporary
79
* arrays.
80
* pp_out <-> optional output file, or NULL
81
*----------------------------------------------------------------------------*/
82
83
void
84
cs_mesh_to_builder
(
cs_mesh_t
*
mesh
,
85
cs_mesh_builder_t
*mb,
86
bool
transfer,
87
cs_io_t *pp_out);
88
89
/*----------------------------------------------------------------------------
90
* Reconstruct periodic faces info from mesh to builder.
91
*
92
* parameters:
93
* mesh <-- pointer to mesh structure
94
* mb <-> pointer to mesh builder structure
95
*----------------------------------------------------------------------------*/
96
97
void
98
cs_mesh_to_builder_perio_faces
(
const
cs_mesh_t
*
mesh
,
99
cs_mesh_builder_t
*mb);
100
101
/*----------------------------------------------------------------------------*/
102
103
END_C_DECLS
104
105
#endif
/* __CS_MESH_TO_BUILDER_H__ */
Generated on Thu Feb 27 2014 19:21:34 by
1.8.3.1