stardis-fbound.h (1365B)
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_FBOUND_H 17 #define SDIS_FBOUND_H 18 19 #include <rsys/rsys.h> 20 #include <rsys/str.h> 21 22 struct mem_allocator; 23 24 /******************************************************************************* 25 * F boundary type 26 ******************************************************************************/ 27 struct f_boundary { 28 struct str name; 29 double imposed_flux; 30 unsigned mat_id; 31 }; 32 33 res_T 34 init_f_boundary 35 (struct mem_allocator* allocator, 36 struct f_boundary** dst); 37 38 void 39 release_f_boundary 40 (struct f_boundary* bound, 41 struct mem_allocator* allocator); 42 43 res_T 44 str_print_f_boundary 45 (struct str* str, 46 const struct f_boundary* bound); 47 48 #endif