SaveLine on multiple boundaries

Numerical methods and mathematical models of Elmer
Post Reply
zeljkoT
Posts: 26
Joined: 14 Nov 2018, 12:55
Antispam: Yes

SaveLine on multiple boundaries

Post 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
Attachments
coax_e_field.zip
(122.38 KiB) Downloaded 21 times
raback
Site Admin
Posts: 4838
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: SaveLine on multiple boundaries

Post 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
...
zeljkoT
Posts: 26
Joined: 14 Nov 2018, 12:55
Antispam: Yes

Re: SaveLine on multiple boundaries

Post by zeljkoT »

Thank you Peter for your reply.
It works!

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

Cheers
Zeljko
Attachments
case.sif
(2.51 KiB) Downloaded 25 times
Post Reply