|
[Sponsors] |
Conversion of calculated scalar data into non-uniform internal field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 29, 2019, 05:23 |
Conversion of calculated scalar data into non-uniform internal field
|
#1 | ||
Senior Member
|
Hello Foamers,
I want to initialize my source term as non-uniform internal field list (like a pattern below) Quote:
Quote:
|
|||
December 29, 2019, 16:45 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
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/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 29, 2019, 21:54 |
|
#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. |
||||
December 30, 2019, 10:00 |
|
#4 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Quote:
Yes you do have to transform your data to the corresponding syntax for non-uniform field.
__________________
Keep foaming, Tobias Holzmann |
||
December 30, 2019, 10:04 |
|
#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". |
|
December 30, 2019, 10:14 |
|
#6 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
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 |
|
December 30, 2019, 10:40 |
|
#7 |
Senior Member
|
How silly I'm.. Thank you Tobi.. Solved !!
|
|
January 2, 2020, 06:56 |
|
#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:
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FOAM FATAL ERROR: Maximum number of iterations exceeded: 100 | antoniomollo | OpenFOAM Running, Solving & CFD | 5 | March 2, 2023 06:13 |
dsmcFoam setup | hherbol | OpenFOAM Pre-Processing | 1 | November 19, 2021 01:52 |
Inlet patch problems | martyn88 | OpenFOAM Running, Solving & CFD | 6 | April 21, 2017 18:34 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |