9.2
general documentation
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-2026 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 "base/cs_defs.h"
35
36#include "fvm/fvm_group.h"
37#include "fvm/fvm_selector.h"
38#include "fvm/fvm_periodicity.h"
39
40#include "base/cs_base.h"
41
42#include "base/cs_io.h"
43#include "mesh/cs_mesh.h"
46
47/*=============================================================================
48 * Macro definitions
49 *============================================================================*/
50
51/*============================================================================
52 * Type definitions
53 *============================================================================*/
54
55/*============================================================================
56 * Static global variables
57 *============================================================================*/
58
59/*=============================================================================
60 * Public function prototypes
61 *============================================================================*/
62
63/*----------------------------------------------------------------------------
64 * Transfer mesh to mesh builder structure.
65 *
66 * As the dataflow is very similar, but may be done array-by array to minimize
67 * memory overhead, this function also handles a part of the output
68 * to file needed to save a mesh file.
69 *
70 * parameters:
71 * mesh <-> pointer to mesh structure
72 * mb <-> pointer to mesh builder structure
73 * transfer <-- if true, data is transferred from mesh to builder;
74 * if false, builder fields are only used as a temporary
75 * arrays.
76 * pp_out <-> optional output file, or NULL
77 *----------------------------------------------------------------------------*/
78
79void
82 bool transfer,
83 cs_io_t *pp_out);
84
85/*----------------------------------------------------------------------------
86 * Transfer mesh partitioning info to mesh builder structure.
87 *
88 * parameters:
89 * mesh <-- pointer to mesh structure
90 * mb <-> pointer to mesh builder structure
91 *----------------------------------------------------------------------------*/
92
93void
96
97/*----------------------------------------------------------------------------
98 * Reconstruct periodic faces info from mesh to builder.
99 *
100 * parameters:
101 * mesh <-- pointer to mesh structure
102 * mb <-> pointer to mesh builder structure
103 *----------------------------------------------------------------------------*/
104
105void
108
109/*----------------------------------------------------------------------------*/
110
111#endif /* CS_MESH_TO_BUILDER_H */
struct _cs_io_t cs_io_t
Definition: cs_io.h:64
void cs_mesh_to_builder(cs_mesh_t *mesh, cs_mesh_builder_t *mb, bool transfer, cs_io_t *pp_out)
Transfer mesh to mesh builder structure.
Definition: cs_mesh_to_builder.cpp:1524
void cs_mesh_to_builder_perio_faces(const cs_mesh_t *mesh, cs_mesh_builder_t *mb)
Reconstruct periodic faces info from mesh to builder.
Definition: cs_mesh_to_builder.cpp:1709
void cs_mesh_to_builder_partition(const cs_mesh_t *mesh, cs_mesh_builder_t *mb)
Transfer mesh partitioning info to mesh builder structure.
Definition: cs_mesh_to_builder.cpp:1649
Definition: mesh.f90:26
Definition: cs_mesh_builder.h:57
Definition: cs_mesh.h:85