Page 1 of 1

SaveLine on multiple boundaries

Posted: 17 Aug 2023, 12:03
by zeljkoT
Hi

I want to use the SaveLine solver to save values on multiple boundaries to multiple files.
Reading the doc there is the "Save Mask" option offering what I need, but I struggle understand the Save Mask keyword.

It says:
...the mask name may be defined by this keyword. The correspondingly one should use the same flag in the Boundary Condition and Body section
In the appendix you have a simple case of a coaxial tube arrangement (2D axis symmetric) where the electric field is computed.
I'm interested to apply the SaveLine solver to the left hand side boundary called "high_pot" and to the lower boundary called "flux_par2".

Any idea how to use the Save Mask keyword here?

Code: Select all

! SaveLineEfield
Solver 2
  Exec Solver = After all
  Equation = "SaveLine"
  Procedure = "SaveData" "SaveLine"
  Filename = "boundary_lines.dat"
  Output Directory = ./results
  File Append = Logical False
  Save Mask = ???
End

! high_pot
Boundary Condition 1
  Target Boundaries(1) = 2
  Potential = 1
  Save Line = True
End

! flux_par2
Boundary Condition 4
  Target Boundaries(1) = 5
  Electric Flux = 0
End


Thx in advance and cheers

Re: SaveLine on multiple boundaries

Posted: 17 Aug 2023, 13:00
by raback
Try:

Code: Select all

Solver 2 
  Name = "saveline a"
  Procedure = "SaveData" "SaveLine"
  Save Mask = String "line a"
...

Solver 3
  Name = "saveline b"
  Procedure = "SaveData" "SaveLine"
  Save Mask = String "line b"
...

Boundary Condition 1
  line a = Logical True
...

Boundary Condition 2
  line b = Logical True
...

Re: SaveLine on multiple boundaries

Posted: 17 Aug 2023, 15:47
by zeljkoT
Thank you Peter for your reply.
It works!

For the sake of completeness the sif file in the appendix.

Cheers
Zeljko