stardis-sfconnect.h (1527B)
1 /* Copyright (C) 2018-2025 |Méso|Star> (contact@meso-star.com) 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 3 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 15 16 #ifndef SDIS_SF_CONNECT_H 17 #define SDIS_SF_CONNECT_H 18 19 #include <rsys/rsys.h> 20 #include <rsys/str.h> 21 22 struct mem_allocator; 23 24 /******************************************************************************* 25 * Solid-Fluid connection type 26 ******************************************************************************/ 27 28 struct solid_fluid_connect { 29 struct str name; 30 double ref_temperature; 31 double emissivity; 32 double specular_fraction; 33 double hc; 34 double flux; /* [W/m^2] */ 35 unsigned connection_id; 36 }; 37 38 res_T 39 init_sf_connect 40 (struct mem_allocator* allocator, 41 struct solid_fluid_connect** dst); 42 43 void 44 release_sf_connect 45 (struct solid_fluid_connect* connect, 46 struct mem_allocator* allocator); 47 48 res_T 49 str_print_sf_connect 50 (struct str* str, 51 const struct solid_fluid_connect* connect); 52 53 #endif