|
[Sponsors] |
Conversion of calculated scalar data into non-uniform internal field |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 | ||
Senior Member
|
Hello Foamers,
I want to initialize my source term as non-uniform internal field list (like a pattern below) Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 761
Rep Power: 8 ![]() |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak-FSB OpenFOAM Governance and Technical Committees Report bugs/Request features: OpenFOAM (ESI-OpenCFD-Trademark) Report bugs/Request features: FOAM-Extend (Wikki-FSB) Report bugs: OpenFOAM.org How to create a MWE. OpenFOAM Journal |
|
![]() |
![]() |
![]() |
![]() |
#3 | |||
Senior Member
|
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. |
||||
![]() |
![]() |
![]() |
![]() |
#4 | |
Super Moderator
|
Quote:
Yes you do have to transform your data to the corresponding syntax for non-uniform field.
__________________
Keep foaming, Tobias Holzmann |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
|
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". |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Super Moderator
|
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.
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
|
How silly I'm.. Thank you Tobi.. Solved !!
|
|
![]() |
![]() |
![]() |
![]() |
#8 | ||
Senior Member
|
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:
|
|||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FOAM FATAL ERROR: Maximum number of iterations exceeded: 100 | antoniomollo | OpenFOAM Running, Solving & CFD | 4 | October 11, 2019 01:22 |
Inlet patch problems | martyn88 | OpenFOAM Running, Solving & CFD | 6 | April 21, 2017 19:34 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
dsmcFoam setup | hherbol | OpenFOAM Pre-Processing | 0 | July 14, 2013 18:16 |