Conversion of calculated scalar data into non-uniform internal field
Hello Foamers,
I want to initialize my source term as non-uniform internal field list (like a pattern below) Quote:
Quote:
|
Can't you write it out at writeTime by `RRg.write()` if RRg is a registered IOobject, like say epsilon.
You mean memory copy or manual ascii copy? If manual copy, add `Info<< RRg <<nl;`, and recompile the solver. If none of these help, please elaborate what and how ypu want to sort things out. |
Dear HPE,
Thank you for your response. Let me elaborate the problem. Let's say there are 2 solvers 1 and 2, which are completely independent of each other. In SOLVER 1 - I resolved RRg and extracted the output [using functionObjects-probes] as given below: Quote:
Quote:
Quote:
SOLVER 2 - How to load the data of RRg as nonuniform scalar List ? Do we need to convert the calculated scalar data into non-uniform internal field ? Kindly correct me if I'm trying to get things with the wrong approach. Thank you again. |
Quote:
Yes you do have to transform your data to the corresponding syntax for non-uniform field. |
Dear Tobi,
Thank you for your response. Could you please share some ideas or hints regarding as, "how to transform my data into corresponding syntax for non-uniform field". |
I have no idea why you make it so difficult. AFAIU, you calculate the RRg field using solver1. So you should have a volScalarField available. Now you can write this field during your run (using solver 1). Thus, you get the field in the time folders. This file can be used to be loaded in your solver 2. Doing so, there is nothing to be done anymore.
|
How silly I'm.. Thank you Tobi.. Solved !!
|
Hello Tobi,
I have one more query. SOLVER 1 - 1D heat equation solver - RRg data calculated. SOLVER 2 - 2D gas flow solver - How to load the data of RRg from 1D into 2D solver ? I have calculated the source field RRg (as given below) in 1D heat equation (pyrolysis solver). Quote:
Quote:
|
All times are GMT -4. The time now is 09:47. |