stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

stardis-hfbound.h (1589B)


      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_HFBOUND_H
     17 #define SDIS_HFBOUND_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  * HF boundary type
     28  ******************************************************************************/
     29 struct hf_boundary {
     30   struct str name;
     31   double ref_temperature;
     32   double emissivity;
     33   double specular_fraction;
     34   double hc;
     35   double imposed_flux;
     36   double imposed_temperature;
     37   unsigned mat_id;
     38   struct fluid* possible_external_fluid; /* if HF for solid */
     39 };
     40 
     41 res_T
     42 init_hf_boundary
     43   (struct mem_allocator* allocator,
     44    struct hf_boundary** dst);
     45 
     46 void
     47 release_hf_boundary
     48   (struct hf_boundary* bound,
     49    struct mem_allocator* allocator);
     50 
     51 res_T
     52 str_print_hf_boundary
     53   (struct str* str,
     54    const struct description* desc);
     55 
     56 #endif