9.2
general documentation
cs_mesh_warping.h
Go to the documentation of this file.
1#ifndef CS_MESH_WARPING_H
2#define CS_MESH_WARPING_H
3
4/*============================================================================
5 * Cut warped faces in serial or parallel with/without periodicity.
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_base.h"
35#include "mesh/cs_mesh.h"
36
37/*============================================================================
38 * Macro definitions
39 *============================================================================*/
40
41/*============================================================================
42 * Type definitions
43 *============================================================================*/
44
45/*=============================================================================
46 * Public function prototypes
47 *============================================================================*/
48
49/*----------------------------------------------------------------------------
50 * Cut warped faces.
51 *
52 * Updates border face connectivity and associated mesh quantities.
53 *
54 * parameters:
55 * mesh <-> pointer to mesh structure.
56 * max_warp_angle <-- criterion to know which face to cut
57 * post_flag <-- 1 if we have to post-process cut faces, 0 otherwise
58 *----------------------------------------------------------------------------*/
59
60void
62 double max_warp_angle,
63 bool post_flag);
64
65/*----------------------------------------------------------------------------
66 * Set defaults for cutting of warped faces.
67 *
68 * parameters:
69 * max_warp_angle <-- maximum warp angle (in degrees) over which faces will
70 * be cut; negative (-1) if faces should not be cut
71 * postprocess <-- 1 if postprocessing should be activated when cutting
72 * warped faces, 0 otherwise
73 *----------------------------------------------------------------------------*/
74
75void
76cs_mesh_warping_set_defaults(double max_warp_angle,
77 int postprocess);
78
79/*----------------------------------------------------------------------------
80 * Get defaults for cutting of warped faces.
81 *
82 * parameters:
83 * max_warp_angle --> if non-null, returns maximum warp angle (in degrees)
84 * over which faces will be cut, or -1 if faces should
85 * not be cut
86 * postprocess --> if non-null, returns 1 if postprocessing should be
87 * activated when cutting warped faces, 0 otherwise
88 *----------------------------------------------------------------------------*/
89
90void
91cs_mesh_warping_get_defaults(double *max_warp_angle,
92 int *postprocess);
93
94/*----------------------------------------------------------------------------*/
95
96#endif /* CS_MESH_WARPING_H */
void cs_mesh_warping_cut_faces(cs_mesh_t *mesh, double max_warp_angle, bool post_flag)
Cut warped boundary faces.
Definition: cs_mesh_warping.cpp:539
void cs_mesh_warping_get_defaults(double *max_warp_angle, int *postprocess)
Definition: cs_mesh_warping.cpp:706
void cs_mesh_warping_set_defaults(double max_warp_angle, int postprocess)
Definition: cs_mesh_warping.cpp:682
Definition: mesh.f90:26
Definition: cs_mesh.h:85