I use ever more SaveLine instances, and have run into a few issues, and have some requests:
I currently have 2 SaveLine commands.
Problems:
a) Only the first SaveLine command will have save a SaveLine.txt.names file: For subsequent SaveLine commands, no such file is saved,
so one must guess its contents, or change the order of the SaveLine commands to get info on the contents of the other saveline files.
b) A dummy Save Mask that is never set true must be included in SaveLine statements using PolyLines to avoid that unwanted Boundary info is saved with the Polyline info when another SaveLIne command sets a Mask to define which Boundary it should save Boundary info for.
I have found a way to circumvent this problem: See the two examples below !
c) If one defines the variables to be saved for a Boundary SaveLine, then no coordiates are saved ! See example below.
d) See inline comments for more problems with the SaveLine command:
Code: Select all
Solver 2
Exec Solver = After TimeStep
Equation = SaveLine
Procedure = "SaveData" "SaveLine"
Variable 1 = String "Temperature"
Variable 2 = String "Strength"
File Append = Logical False
! Causes the Boundary with "Save Line = Logical True" and "Bed_Top_Save_Mask = Logical True"
! For some reason Boundary Nodes will otherwise be included in data for this SaveLine instance!
Save Mask = String "Not_Defined_Save_Mask"
Filename = "SL_Tcs_&_Strength_Mid_Top.txt"
Polyline coordinates(2, 2) = 0.600 0.495 0.600 0.505
End
Code: Select all
Solver 3
Exec Solver = After TimeStep
Equation = SaveLine
Procedure = "SaveData" "SaveLine"
! If we specify ONLY Temperature as the var to be saved, coordinates will NOT be saved.
! If we specify NO Variable, ALL Variables (Temperature & Strength) AND Coordinates will be saved.
! Last 3 Columns are always: "Flux 1", "Flux 2", "Flux normal". "Flux normal" indicates when Heating goes negative:
! Negative "Flux normal" means Bed emits heat to concrete: Positive "Flux normal" means Slab emits heat to Bed.
! Sign probably depends on direction of Boundary Line 8 drawn in GID?
! We need the Coordinates if we want to determine Flux at a specific Point.
!Variable 1 = String "Temperature"
! This makes sure ONLY the Listed Variables will be exported !
! Unfortunately, one also looses the TimeStep info !
! See http://www.elmerfem.org/forum/viewtopic.php?f=3&t=1066
! Skip Boundary Info = Logical False
! This does NOT work: File is ALWAYS appended to, whatever the setting here !
File Append = Logical False
Save Flux = Logical True
Flux Variable = String "Temperature"
Flux Coefficient = String "Heat Conductivity"
! Include Boundary Nodes for the Boundary with: "Save Line = Logical True" and "Bed_Top_Save_Mask = Logical True"
! See the case.sif file.
! See CASE_SaveLine_Tcs_Mid_Top.txt on avoiding Boundary nodes being included in other Saveline instances.
Save Mask = String "Bed_Top_Save_Mask"
Filename = "SL_Bed_Heat_Flux_Mid_Top.txt"
End
Questions regarding the Flux info:
a) What is Flux1 and Flux2 ?
b) I gather the Flux Normal is what it says: A vector normal to the Boundary?
I want to know when the Flux changes sign. But what determines the sign of the Flux?
I understand that it changes sign when the direction of the flux changes, but how does Elmer define when the flux is positive and when it is negative?
-- The direction of the Boundary Line ?
gos