TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
IJK_Lata_writer.h
1/****************************************************************************
2* Copyright (c) 2025, 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 IJK_LATA_WRITER_H
17#define IJK_LATA_WRITER_H
18
19#include <IJK_Field.h>
20#include <IJK_Field_vector.h>
21#include <LataTools.h>
22
23void dumplata_header(const char *filename);
24
25template<typename _TYPE_, typename _TYPE_ARRAY_>
26void dumplata_header(const char *filename, const IJK_Field_template<_TYPE_,_TYPE_ARRAY_>& f);
27
28template<typename _TYPE_, typename _TYPE_ARRAY_>
29void dumplata_add_geometry(const char *filename, const IJK_Field_template<_TYPE_,_TYPE_ARRAY_>& f);
30
31void dumplata_add_geometry(const char *filename, const Domaine_IJK& splitting);
32
33void dumplata_newtime(const char *filename, double time);
34
35template<typename _TYPE_, typename _TYPE_ARRAY_>
36void dumplata_vector(const char *filename, const char *fieldname,
38 int step);
39
40template<typename _TYPE_, typename _TYPE_ARRAY_>
41void dumplata_vector_parallele_plan(const char *filename, const char *fieldname,
43 int step);
44
45template<typename _TYPE_>
46void dumplata_cellvector(const char *filename, const char *fieldname,
48 int step);
49
50template<typename _TYPE_, typename _TYPE_ARRAY_>
51void dumplata_scalar(const char *filename, const char *fieldname,
53 int step);
54
55template<typename _TYPE_, typename _TYPE_ARRAY_>
56void dumplata_scalar_parallele_plan(const char *filename, const char *fieldname,
58 int step);
59
60void dumplata_finish(const char *filename);
61
62template<typename _TYPE_, typename _TYPE_ARRAY_>
63void lire_dans_lata(const char *filename, int tstep, const char *geometryname, const char *fieldname,
65
66template<typename _TYPE_, typename _TYPE_ARRAY_>
67void lire_dans_lata(const char *filename, int tstep, const char *geometryname, const char *fieldname,
69
70
71bool lata_has_field(const char *filename, int tstep, const char *geometryname, const char *fieldname);
72
73template<typename _TYPE_, typename _TYPE_ARRAY_>
74void read_lata_parallel_template(const char *filename_with_path, int tstep, const char *geometryname, const char *fieldname,
75 const int i_compo,
77
78void dumplata_ft_field(const char *filename, const char *meshname,
79 const char *field_name, const char *localisation,
80 const ArrOfInt& field, int step);
81void dumplata_ft_field(const char *filename, const char *meshname,
82 const char *field_name, const char *localisation,
83 const ArrOfDouble& field, int step);
84
85Nom dirname(const Nom& filename);
86Nom basename(const Nom& filename);
87
88#include <IJK_Lata_writer.tpp>
89
90#endif
This class encapsulates all the information related to the eulerian mesh for TrioIJK.
Definition Domaine_IJK.h:47
: This class is an IJK_Field_local with parallel informations.
The class IJK_Field_vector is a fixed array of polymorphic IJK fields.
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31