commit 6a8cded7e9b5a35253b26ff53c82ae02a19adbba parent 60c04b4c1654d3c26d32fe4d470e5ab9690e4054 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Fri, 11 Sep 2020 07:59:43 +0200 Follow changes in stardis types Diffstat:
| M | src/green-types.h | | | 35 | ++++++++++++++++++++++------------- |
1 file changed, 22 insertions(+), 13 deletions(-)
diff --git a/src/green-types.h b/src/green-types.h @@ -353,47 +353,55 @@ enum description_type { struct mat_fluid { struct str name; - unsigned fluid_id; - double rho; - double cp; + double rho; /* Volumic mass */ + double cp; /* Calorific capacity */ double tinit; double imposed_temperature; + double t0; /* End time of tinit */ + int is_outside; /* the fluid is used for a boundary */ + int is_green; /* green computation nothing to do with fluid itself) */ + unsigned desc_id; /* id of the boundary; meaningful if is_outside */ + unsigned fluid_id; }; struct mat_solid { struct str name; - unsigned solid_id; - double lambda; - double rho; - double cp; - double delta; - double tinit; - double imposed_temperature; + double lambda; /* Conductivity */ + double rho; /* Volumic mass */ + double cp; /* Calorific capacity */ + double delta; /* Numerical parameter */ + double tinit; /* Initial temperature */ + double imposed_temperature; /* allow to impose a T; -1 if unset */ double vpower; + double t0; /* End time of tinit */ + int is_outside; /* the fluid is used for a boundary */ + int is_green; /* green computation nothing to do with fluid itself) */ + unsigned desc_id; /* id of the boundary; meaningful if is_outside */ + unsigned solid_id; }; struct h_boundary { struct str name; - unsigned mat_id; double emissivity; double specular_fraction; double hc; double imposed_temperature; + unsigned mat_id; }; struct t_boundary { struct str name; - unsigned mat_id; double emissivity; double specular_fraction; double hc; double imposed_temperature; + unsigned mat_id; }; struct f_boundary { struct str name; - unsigned mat_id; double imposed_flux; + unsigned mat_id; }; struct solid_fluid_connect { @@ -401,6 +409,7 @@ struct solid_fluid_connect { double emissivity; double specular_fraction; double hc; + unsigned connection_id; }; struct description {