I have a question about the ascii output of SaveData -> SaveScalars. I am running SaveData->SaveScalars over my whole parallel mesh, see below.
Some partitions of my mesh have one boundary condition more than the others (practically it's a glacier with some nunataks and some partitions contain a nunatak, others don't). That means that for some of the ascii output files I have one column more than for others, the ".names" file describing the columns doesn't fit for all of the ".dat.partition" files and it's difficult to identify in an automatic way which column represents for example the flux through the glacier surface, since it's not always column 4, but sometimes also number 5.
I have a whole set of simulations with slightly different set-ups, so I'm relying on scripts using the ascii output (in the end I need to sum the mass and the fluxes over all my partitions). In addition, unfortunatly one of the nunatak seems to be just on the partition limit, so somehow it doesn't belong always to the same partition (I haven't understood that yet fully, however). So basicly I have to check for each run by hand which are the .dat files with nunataks and which the ones without.
I was wondering if there was a simple solution to that? Would there be a possibility to have the same number of columns (flux 0 for "nonexisting" boundaries for example) in all .dat.partition files or to get right away only one .dat file to avoid all human errors that happen when counting and summing over the columns of the different .dat.partition files?
Maybe I could also run somehow not only once SaveData->SaveScalars, but running it 3 times: once for volume, once for the fluxes on nunataks and once for the fluxes on the other boundaries?
Thanks for your ideas,
Martina
Code: Select all
Solver 13
Equation = "SaveData"
Procedure = File "SaveData" "SaveScalars"
Exec Solver = after timestep
Filename = "mass"$name".dat"
File Append = Logical True ! For transient simulation
Variable 1 = String "Time"
Variable 2 = String "Flow Solution"
Operator 2 = String "Volume"
Operator 3 = String "Convective Flux"
Variable 3 = String "Flow Solution"
End