commit d1bc402c294ce51a2fd6a3cd5b42e94085305c53
parent c666a188f44ae7f479ded3882cfd38df94bb0871
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Mon, 15 Mar 2021 13:08:52 +0100
Add connections to html description of Green functions
Diffstat:
1 file changed, 54 insertions(+), 0 deletions(-)
diff --git a/src/green-output.c b/src/green-output.c
@@ -314,6 +314,8 @@ dump_green_info
fprintf(stream, " <th>T Boundaries</th>\n");
fprintf(stream, " <th>H Boundaries</th>\n");
fprintf(stream, " <th>F Boundaries</th>\n");
+ fprintf(stream, " <th>Solid-Fluid Connections</th>\n");
+ fprintf(stream, " <th>Solid-Solid Connections</th>\n");
fprintf(stream, " <th>OK Samples</th>\n");
fprintf(stream, " <th>Failures</th>\n");
fprintf(stream, "</tr>\n");
@@ -323,6 +325,8 @@ dump_green_info
CELL(u, green->counts.tbound_count);
CELL(u, green->counts.hbound_count);
CELL(u, green->counts.fbound_count);
+ CELL(u, green->counts.sfconnect_count);
+ CELL(u, green->counts.ssconnect_count);
CELL(lu, (long unsigned)green->counts.ok_count);
CELL(lu, (long unsigned)green->counts.failed_count);
fprintf(stream, "</tr>\n");
@@ -526,6 +530,56 @@ dump_green_info
}
if(local_count) fprintf(stream, "</table>\n");
+ /* S-F connection table */
+ local_count = 0;
+ FOR_EACH(i, 0, green->counts.desc_count) {
+ const struct description* desc = green->descriptions + i;
+ const struct solid_fluid_connect* sf;
+ if(desc->type != DESC_SOLID_FLUID_CONNECT) continue;
+ if(!local_count) {
+ fprintf(stream, "<h2>Solid-Fluid connections</h2>\n");
+ fprintf(stream, "<table>\n");
+ fprintf(stream, "<tr>\n");
+ fprintf(stream, " <th>Name</th>\n");
+ fprintf(stream, " <th>Emissivity</th>\n");
+ fprintf(stream, " <th>Specular Fraction</th>\n");
+ fprintf(stream, " <th>Hc</th>\n");
+ fprintf(stream, "</tr>\n");
+ }
+ sf = &desc->d.sf_connect;
+ fprintf(stream, "<tr>\n");
+ CELL(s, str_cget(&sf->name));
+ CELL(g, sf->emissivity);
+ CELL(g, sf->specular_fraction);
+ CELL(g, sf->hc);
+ fprintf(stream, "</tr>\n");
+ local_count++;
+ }
+ if(local_count) fprintf(stream, "</table>\n");
+
+ /* S-S connection table */
+ local_count = 0;
+ FOR_EACH(i, 0, green->counts.desc_count) {
+ const struct description* desc = green->descriptions + i;
+ const struct solid_solid_connect* ss;
+ if(desc->type != DESC_SOLID_SOLID_CONNECT) continue;
+ if(!local_count) {
+ fprintf(stream, "<h2>Solid-Solid connections</h2>\n");
+ fprintf(stream, "<table>\n");
+ fprintf(stream, "<tr>\n");
+ fprintf(stream, " <th>Name</th>\n");
+ fprintf(stream, " <th>Thermal Contact Resistance</th>\n");
+ fprintf(stream, "</tr>\n");
+ }
+ ss = &desc->d.ss_connect;
+ fprintf(stream, "<tr>\n");
+ CELL(s, str_cget(&ss->name));
+ CELL(g, ss->tcr);
+ fprintf(stream, "</tr>\n");
+ local_count++;
+ }
+ if(local_count) fprintf(stream, "</table>\n");
+
/* Radiative temperatures table */
fprintf(stream, "<h2>Radiative temperatures</h2>\n");
fprintf(stream, "<table>\n");