@@ -311,6 +311,7 @@ def read_frd_result(
311
311
mode_strain = {}
312
312
mode_peeq = {}
313
313
mode_temp = {}
314
+ mode_heatflux = {}
314
315
mode_massflow = {}
315
316
mode_networkpressure = {}
316
317
@@ -322,6 +323,7 @@ def read_frd_result(
322
323
mode_strain_found = False
323
324
mode_peeq_found = False
324
325
mode_temp_found = False
326
+ mode_heatflux_found = False
325
327
mode_massflow_found = False
326
328
mode_networkpressure_found = False
327
329
end_of_section_found = False
@@ -641,6 +643,19 @@ def read_frd_result(
641
643
temperature = float (line [13 :25 ])
642
644
mode_temp [elem ] = (temperature )
643
645
646
+ # Check if we found heat flux section
647
+ if line [5 :9 ] == "FLUX" :
648
+ mode_heatflux_found = True
649
+ if mode_heatflux_found and (line [1 :3 ] == "-1" ):
650
+ # we found a heat_flux line
651
+ elem = int (line [4 :13 ])
652
+ mode_heatflux_x = float (line [13 :25 ])
653
+ mode_heatflux_y = float (line [25 :37 ])
654
+ mode_heatflux_z = float (line [37 :49 ])
655
+ mode_heatflux [elem ] = FreeCAD .Vector (mode_heatflux_x , mode_heatflux_y , mode_heatflux_z )
656
+
657
+
658
+
644
659
# Check if we found a mass flow section
645
660
if line [5 :11 ] == "MAFLOW" :
646
661
mode_massflow_found = True
@@ -713,6 +728,12 @@ def read_frd_result(
713
728
mode_temp_found = False
714
729
node_element_section = False
715
730
731
+ if mode_heatflux_found :
732
+ mode_results ["heatflux" ] = mode_heatflux
733
+ mode_heatflux = {}
734
+ mode_heatflux_found = False
735
+ node_element_section = False
736
+
716
737
if mode_massflow_found :
717
738
mode_results ["mflow" ] = mode_massflow
718
739
mode_massflow = {}
0 commit comments