TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Cut_cell_tools.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Cut_cell_tools_included
17#define Cut_cell_tools_included
18
19#include <memory>
20#include <IJK_Field.h>
21
23
24template<class T, int N>
26
27using Cut_field_vector3_int = Cut_field_vector<int, 3>;
28using Cut_field_vector3_double = Cut_field_vector<double, 3>;
29
30
31class Domaine_IJK;
33
34void dumplata_scalar_cut_cell(int cut_cell_activated,
35 const char *filename, const char *fieldname,
36 const std::shared_ptr<IJK_Field_double>& f,
37 int step);
38
39
40
41void lire_dans_lata_cut_cell(int cut_cell_activated,
42 const char *filename, int tstep, const char *geometryname, const char *fieldname,
43 std::shared_ptr<IJK_Field_double>& f);
44
45void allocate_velocity(Cut_field_vector3_double& v, const Domaine_IJK& s, int ghost, double DU=0.);
46void allocate_velocity_persistant(Cut_cell_FT_Disc& cut_cell_disc, Cut_field_vector3_double& v, const Domaine_IJK& s, int ghost, double DU=0.);
47void allocate_velocity_ephemere(Cut_cell_FT_Disc& cut_cell_disc, Cut_field_vector3_double& v, const Domaine_IJK& s, int ghost, double DU=0.);
48void allocate_velocity_paresseux(Cut_cell_FT_Disc& cut_cell_disc, Cut_field_vector3_double& v, const Domaine_IJK& s, int ghost, double DU=0.);
49
50#endif /* Cut_cell_tools_included */
: class Cut_field_vector
Definition Cut_field.h:169
This class encapsulates all the information related to the eulerian mesh for TrioIJK.
Definition Domaine_IJK.h:47