Writing surface report to a file using journal file
Hi
I'm currently attempting something that should be relatively straightforward: I want to take an area-weighted average on a surface, and write that value to a file using a journal command. I want to do this from an existing data file, not as I'm running my calculation. This is easily achievable through the GUI by simply going through the report interface and clicking 'write' after I've calculated my average. However, I can't seem to find an equivalent journal command. (The report/surface-integrals tree doesn't have a write option, and the file tree doesn't seem to have a surface-integrals option) (The reason I'm doing this is simply that I have a large number of data files that I'd like to loop through and take the report from each of them) |
you don't need journal file to do that
it is possible to write to file integrals vs time: solution -> report-definition -> new -> surface-report -> area-weight average -> select variable and face -> OK now create output file: solution-> monitors -> report Files -> new -> select your variable -> define file name -> OK |
Thanks for your response. Unfortunately I'm not sure its applicable to my case, as I already have the solution data files and I don't want to rerun the simulation.
I'm looking instead to write the value from a journal file as I already have a script to loop through the existing data files and perform the journal operations on them. I'd rather not go through each one manually writing out the value. |
to write output at the end of file:
Code:
(ti-menu-load-string (format #f " report surface-integrals area-weighted-avg *surface_name* () *variable* yes *filename.srp* ")) output will look like this Quote:
Code:
(pick-a-real (format #f "report surface-integrals area-weighted-avg *surface_name* () *variable* no")) Code:
;;;write to file |
Thanks so much for this - although actually I realise now that the option to write to file was always there under report and I simply wasn't going far enough to find it. Incidentally, I'm having a hard time finding much documentation on the scheme language. Do you have any good source of info on it?
|
https://www.researchgate.net/publica..._Dokumentation
there you can find literature list, but in German: Quote:
|
All times are GMT -4. The time now is 19:55. |