|
[Sponsors] |
Lagrangian particle modelling combined with CHT |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 28, 2013, 09:12 |
Lagrangian particle modelling combined with CHT
|
#1 | ||||
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hello all,
I am going to create a lagrangian solver (in best case a LTS lagrangian solver) that also allows conjugate heat transfer with solid regions. My plan is to create a combination of the chtMultiRegionFoam and the LTSReactingParcelFoam solver. But already in my first step implementing the LTS in the solver chtMultiRegionFoam I am facing problems: To start the Pressure-velocity PIMPLE corrector loop in the LTS solver is implemented: Quote:
Quote:
Quote:
Quote:
#include "pimpleControl.H" #include "DataEntry.H" #include "fvcSmooth.H" #include "readPIMPLEControls.H" to the solver. What is the prerequisite to start the Pressure-velocity PIMPLE corrector loop with while? Thank in advance for your help. Kind regards Chrisi |
|||||
March 3, 2013, 17:28 |
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Chrisi,
Did you add a pimpleControl object? One can be declared using something like Code:
. . . #include "pimpleControl.H" . . . int main(int argc, char *argv[]) { #include "setRootCase.H" #include "createTime.H" #include "createMesh.H" #include "createFields.H" #include "createZones.H" #include "initContinuityErrs.H" pimpleControl pimple(mesh); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; while (runTime.run()) { #include "readTimeControls.H" #include "CourantNo.H" #include "setDeltaT.H" runTime++; Info<< "Time = " << runTime.timeName() << nl << endl; // --- Pressure-velocity PIMPLE corrector loop while (pimple.loop()) { . . . Last edited by chegdan; March 3, 2013 at 17:44. |
|
March 5, 2013, 15:08 |
|
#3 |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Thanks that worked!
|
|
March 8, 2013, 10:18 |
|
#4 | ||||
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi again,
I made some progress in the mean time. But now I am facing a new problem that i can't get rid of for a while. In the file "createFluidFields" I try to implement pointers. In the standard "reactingParcelFoam" solver it is implemented that way: Quote:
Quote:
psiChemistryModel& chemistry = combustion->pChemistry(); hsCombustionThermo& thermo = chemistry.thermo(); How can i handle the references with a pointer? I already tried that: Quote:
Quote:
|
|||||
March 8, 2013, 10:57 |
|
#5 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Do you want to have wallfilm/solid heat transfer also?
Because thats going to require alot more work than just modifying solvers. I had a master thesis student to write a spray with wallfilm CHT multi-region) solver a few months ago, so it can be done, but if you are stuck at this level, you're going to have a really hard time ahead...just a warning |
|
March 8, 2013, 12:14 |
|
#6 |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi,
yes i want to implement spray in the cht solver. But in a first step the wallfilm model need not to be implemented. Is the most of the work for the wallfilm modeling or just for dosing spray? Kind regards Chrisi |
|
March 8, 2013, 13:54 |
|
#7 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
spray, once that is done, wallfilm is trivial
|
|
March 8, 2013, 14:11 |
|
#8 |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Thanks for your hint. So I know that I have to be patient.
Nevertheless can you give me some help regarding my pointer problem? Kind regrads Chrisi |
|
March 20, 2015, 06:30 |
|
#9 |
New Member
Bosen Wang
Join Date: Dec 2014
Posts: 1
Rep Power: 0 |
||
March 26, 2015, 00:40 |
|
#10 | |
Senior Member
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16 |
Hi Bosen,
I solved the problem with my pointer. Now the code is: Quote:
Chrisi |
||
May 26, 2021, 20:45 |
|
#11 |
New Member
Robert Crane
Join Date: Jul 2020
Posts: 8
Rep Power: 6 |
Hi Chrisi, were you able to get this solver working? Any chance you would be willing to share it?
It would be very useful for a problem I am facing. Cheers, Rob |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blood Damage Modelling via Particle Tracking in a Centrifugal Heart Pump | scatman | CFX | 7 | January 8, 2018 01:59 |
print position of Lagrangian particle? | sven82 | OpenFOAM Running, Solving & CFD | 4 | June 16, 2016 09:58 |
Particle Reynolds number calculation in Lagrangian tracking? | jiejie | OpenFOAM Running, Solving & CFD | 5 | July 6, 2012 05:47 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |