## Problem with SaveScalar Solver

### Problem with SaveScalar Solver

Hi,
I'm trying to save the value of a variable in some specific coordinates by using the procedure "SaveData" " SaveScalars". The complications is that I need to extract this information for a long list of points. For this, I have written specified two solvers, Solver 2 and Solver 3, which contains a list of 150 points each as follows:

Code: Select all
`\$nerves2 = -0.02941 -0.02731 -0.01632 -0.02919 -0.02654 -0.0158 (148 3D points more...)Solver 2   Equation = Save Scalar2   Procedure = "SaveData" "SaveScalars"   Filename = potentials2.csv   Save Coordinates (150,3) = Real \$nerves2\$   Exact Coordinates = True   File Append = True   Variable 1 = Potential   Exec Solver = After Simulation End\$points3 = -0.0265 -0.02512 -0.01346 -0.02648 -0.02507 -0.01343  (148 3D points more...)Solver 3   Equation = Save Scalar3   Procedure = "SaveData" "SaveScalars"   Filename = potentials3.csv   Save Coordinates (150,3) = Real \$points3\$   Exact Coordinates = True   File Append = True   Variable 1 = Potential   Exec Solver = After Simulation End`

According to this, it should create two different files, potentials2.csv and potentials3.csv . with the resulting information. Is it correct?
However, even if it seems that Elmer call all solvers, just writes one file : potentials2.csv

Code: Select all
`                       Solver Equation string is: save scalar2    SaveScalars: -----------------------------------------    SaveScalars: Saving scalar values of various kinds    SaveScalars: Performed 1 reduction operations    SaveScalars: Tabulated points within 150 elements    SaveScalars: Registered 1 existing scalars    SaveScalars: Found 1051 values to save in total    SaveScalars:  Saving names of values to file ./potentials2.csv.names    SaveScalars:  Saving values to file ./potentials2.csv    SaveScalars: All done    SaveScalars: -----------------------------------------    SingleSolver: Attempting to call solver    SingleSolver: Solver Equation string is: save scalar3    SaveScalars: -----------------------------------------    SaveScalars: Saving scalar values of various kinds    SaveScalars: Performed 1 reduction operations    SaveScalars: Tabulated points within 150 elements    SaveScalars: Registered 1 existing scalars    SaveScalars: Found 1051 values to save in total    SaveScalars:  Saving values to file ./potentials2.csv    SaveScalars: All done`

In addition, it writes all variables related with the simulation, and not exclusively the "variable 1 = potential defined"

I would appreciate if someone sees the mistake and can help me.

Thanks a lot!
mrceresa

Posts: 18
Joined: 11 Jan 2013, 21:18