libuserd.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Application
25  libuserd-foam
26 
27 Description
28  EnSight library module to read OpenFOAM data directly without translation
29 
30  It can currently handle most cell types.
31 
32  See also: README_USERD_2.0
33  24 Sep 2001: NN - Added support for Ensight API 2.0
34  02 Sep 2002: NN - Added support for ghost cells
35  14 Mar 2004: NN - Added patches to the parts
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #include <stdio.h>
40 
41 #include "IOobjectList.H"
42 #include "Cloud.H"
43 #include "passiveParticle.H"
44 #include "volFields.H"
45 #include "cellModeller.H"
46 #include "OSspecific.H"
47 
48 using namespace Foam;
49 
50 #include "globalFoam.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 extern "C"
55 {
56 
57 #include "USERD_API.H"
58 #include "global_extern.h"
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 // same API as in 1.0
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 #include "USERD_bkup.H"
66 #include "USERD_set_filenames.H"
75 
76 
77 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78 // slightly changed with 2.0 from 1.0
79 // (to handle complex variables - not used by OpenFOAM anyway)
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 #include "USERD_get_constant_val.H"
86 
87 
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89 // critical changes with 2.0 from 1.0
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
94 #include "USERD_get_sol_times.H"
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 // new additions with 2.0 from 1.0
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
102 #include "USERD_get_part_coords.H"
103 #include "USERD_get_part_node_ids.H"
106 
107 #include "USERD_exit_routine.H"
108 #include "USERD_get_model_extents.H"
114 
117 
118 #include "USERD_get_maxsize_info.H"
119 #include "USERD_set_server_number.H"
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 // new additions with 2.03 from 2.02
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
126 #include "USERD_get_matf_set_info.H"
128 #include "USERD_get_matf_var_info.H"
129 #include "USERD_size_matf_data.H"
130 #include "USERD_load_matf_data.H"
131 #include "USERD_get_nsided_conn.H"
133 #include "USERD_get_nfaced_conn.H"
134 
135 //**********************************************************************
136 //======================================================================
137 // STRUCTURED DATA STUFF - not used in OpenFOAM
138 //======================================================================
139 //**********************************************************************
140 
141 #include "USERD_structured_data.H"
142 
143 }
144 
145 // ************************************************************************ //
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Namespace for OpenFOAM.