|
[Sponsors] |
April 1, 2005, 09:36 |
> Can you please tell me how a
|
#21 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
> Can you please tell me how and where can I turn on the turbulent dispersion?
have you looked in sprayProperties? dispersionModel off; or dispersionModel stochasticDispersionRAS; or dispersionModel gradientDispersionRAS; although I dont recommend using turbulent dispersion in 2D with non evaporation sprays. It looks awful. |
|
June 25, 2008, 12:06 |
Hello,
if I use another Sch
|
#22 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hello,
if I use another Schmidt number say Sc_t=0.7 and put it like Niklas proposed fvm::laplacian(turbulence->muEff()/Sc, Yi) my temperature drops quickly to 0K. Do I have to adjust something similiar in hEqn? Regards Markus. |
|
July 22, 2009, 11:36 |
peng-Robinson EOS in reactingfoam
|
#23 |
Member
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17 |
Hi,
I am using "reactingFoam", to model high pressure carbon dioxide release in gas phase (near saturation line). I added new Equation of state (peng Robinson). To make reactingfoam to work with Peng Robinson EOS, I have created a new chemistryReader with sutherlandTransport<specieThermo<janafThermo<pengR obinson>>> in typedef. In consequence, I created new chemistry Model, new reacting mixture and new chemistrySolver to make openfoam read from pengRobinson Eos. after changing the relevant libraries in reactingfoam and compiling, I tried to run a case with updated reactingfoam. I got this error; ... Constructing chemical mechanism terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast Aborted Would you please let me know where should i correct? Is there any better approach to work with a new EoS in reactingFoam Best regards, Hamed |
|
July 23, 2009, 08:30 |
|
#24 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
reactions_(dynamic_cast<const reactingMixture&>(thermo)), To cut a long story short: reactingFoam only works with thermoPhysical-models that are subclasses of reactingMixture (and I think, but am not sure, that some stuff also assumes that your EoS is perfect gas). So there is no trivial way to do what you want, I'm afraid Bernhard |
||
August 11, 2009, 13:44 |
To escape bad_cast error!
|
#25 |
Member
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17 |
Dear Bernhard,
You are right, As far as I try new ways, i get few success! As you mentioned, the source of problem is the line "reactions_(dynamic_cast<const nreactingMixture&>(thermo))", in my case. Is it possible to develope thermophysicalModels/combustion/hCombustionThermo/hCombustionThermos.C ; where currently is, defineTemplateTypeNameAndDebug(hMixtureThermo<reactingMixture>, 0) typedef hMixtureThermo<reactingMixture> hMixtureThermoReactingMixture; addToRunTimeSelectionTable ( hCombustionThermo, hMixtureThermoReactingMixture, fvMesh ); addToRunTimeSelectionTable ( basicThermo, hMixtureThermoReactingMixture, fvMesh ); for reactingFoam. I have found the link http://www.cfd-online.com/Forums/ope...eal-gases.html, where prof.Jasak post a comment for already all solvers except reactingFoam. Thanks a lot, Hamed |
|
August 11, 2009, 14:24 |
|
#26 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Something happened between my last posting and your post: OpenfOAM 1.6 was released! Have a look at section 4.3 of http://www.opencfd.co.uk/openfoam/do...Notes-1.6.html This might be of interest for you Bernhard |
||
August 12, 2009, 13:57 |
Thread changed to Real Gas
|
#27 |
Member
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17 |
Dear Bernhard,
Thanks a lot for the clue, I have changed the Thread, because it is not related to std_cast error anymore, Would you please do me a favor and reply my question in the this Thread: http://www.cfd-online.com/Forums/ope...eal-gases.html Best regards, Hamed |
|
May 29, 2013, 02:20 |
std::bad_cast error
|
#28 |
New Member
Vijay Bhaskar Devarapalli
Join Date: May 2013
Posts: 4
Rep Power: 13 |
Hello all,
I tried simulating sprayEngineFoam and I have the following errror. I am working in 2.2.0 version .. Build : 2.2.0-5be49240882f Exec : sprayEngineFoam Date : May 28 2013 Time : 22:00:01 Host : "ubuntu" PID : 2971 Case : /home/sriksm/OpenFOAM/sriksm-2.2.0/run/forte nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create engine time Create mesh for time = -180 Selecting engineMesh layered deckHeight: 0.11 piston position: 0.0179 Reading g Creating combustion model Selecting combustion model PaSR<psiChemistryCombustion> Selecting chemistry type { chemistrySolver ode; chemistryThermo psi; } Selecting thermodynamics package { type hePsiThermo; mixture inhomogeneousMixture; transport sutherland; thermo janaf; equationOfState perfectGas; specie specie; energy sensibleEnthalpy; } terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast Aborted (core dumped) Can anyone please help me ?
__________________
Cheers, Vijay. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error: Floating point error: invalid number | fpingqian | FLUENT | 4 | February 8, 2012 02:20 |
Errors when Compiling UDF: error C2040/error C2099 | Julian K. | FLUENT | 1 | December 21, 2008 01:23 |
"Error: Floating point error: invalid number" | MI Kim | FLUENT | 2 | January 4, 2007 11:00 |
Fatal error error writing to tmp No space left on device | maka | OpenFOAM Installation | 2 | April 3, 2006 09:48 |
Error: Internal error at line 743 in file 'amgif.c | H.S.Fang | FLUENT | 2 | January 7, 2002 02:57 |