stardis-hbound.h (1556B)
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_HBOUND_H 17 #define SDIS_HBOUND_H 18 19 #include <rsys/rsys.h> 20 #include <rsys/str.h> 21 22 struct mem_allocator; 23 struct fluid; 24 struct description; 25 26 /******************************************************************************* 27 * H boundary type 28 ******************************************************************************/ 29 struct h_boundary { 30 struct str name; 31 double ref_temperature; 32 double emissivity; 33 double specular_fraction; 34 double hc; 35 double imposed_temperature; 36 unsigned mat_id; 37 struct fluid* possible_external_fluid; /* if H for solid */ 38 }; 39 40 res_T 41 init_h_boundary 42 (struct mem_allocator* allocator, 43 struct h_boundary** dst); 44 45 void 46 release_h_boundary 47 (struct h_boundary* bound, 48 struct mem_allocator* allocator); 49 50 res_T 51 str_print_h_boundary 52 (struct str* str, 53 const struct description* desc); 54 55 #endif