Hi Matthias
I have tried to use savescalar as your suggestion, but I do not quite understand the manual that much.
Could you please suggest me for the below question?
First, I want to find the average the electric field on the boundary 6 (at this boundary, I did not set any parameter. I just want to know the nodal value on the path on the boundary 6)
p.s. My model is in 2D.
I have tried many ways
1. I put this command in the .sif file
Solver 3
Exec Solver = After Timestep
Equation = SaveScalars
Procedure = "SaveData" "SaveScalars"
Filename = "avgEfield.dat"
Variable 1 = electric field
Operator 1 = min
Operator 2 = max
Variable 2 = Potential
Operator 3 = min
End
From this command, no matter I put the below command in the .sif or not, the results is still come out with the same value.
Boundary Condition 6
Target Boundaries(1) = 6
Name = "BoundaryCondition 6"
Save Scalars = Logical True
End
2. I put the new command in the .sif file
Solver 3
Exec Solver = After Timestep
Equation = SaveScalars
Procedure = "SaveData" "SaveScalars"
Filename = "avgEfield.dat"
Variable 1 = electric field
Operator 1 = boundary mean
Operator 2 = boundary int mean
Variable 2 = Potential
Operator 3 = boundary mean
Operator 4 = boundary int mean
End
In this time, the results will be calculated just for the case that I put “Save Scalars = Logical True” in the Boundary Condition 6
Could you please explain about the difference between the above methods.?
I guess that the first method is calculated for overall data, but for the second method the data at the assigned boundary will be calculated? Is this correct?
And one more question.
Here is the results from the .dat file
9.682715257089E+001 2.673737611335E-002 1.632873005441E-002 2.673737611335E-002 1.000000000000E+000
9.682713566966E+001 2.673737623008E-002 1.632873005157E-002 2.673737623008E-002 1.000000000000E+000
9.682712917748E+001 2.673737623674E-002 1.632873002521E-002 2.673737623674E-002 1.000000000000E+000
Could you please tell me the meaning of the last column?
And I also would like to know why are there 3 rows of data, what is the meaning of each row?
Could you please suggest me for this issue?
Thank you very much in advance
Kanito
mzenker wrote: ↑24 Sep 2018, 18:11
Hi,
you can use the SaveScalars solver with the mean operator. See Models Manual for more info.
Else you can do it in the postprocessing step, e.g. using ParaView which has almost every filter you can imagine.
HTH,
Matthias