|
[Sponsors] |
'std::bad_cast' error when running reactingFoam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Max
Join Date: Jul 2017
Posts: 12
Rep Power: 9 ![]() |
Hello there, fellow Foamers.
I'm running an simulation of a gas mixing in air with reactingFoam (seeing as I don't want the gases to react, I have turned reactions off in the chemistryProperties and combustionProperties files) However when I try to run the solver, I keep getting this error message. Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 4.1 Exec : reactingFoam Date : Jul 30 2017 Time : 20:39:30 Host : "max-Lenovo-G50-80" PID : 3783 Case : /home/max/OpenFOAM/max-4.1/run/EvaporatingExample nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Creating reaction model Selecting combustion model laminar<psiChemistryCombustion> Selecting chemistry type { chemistrySolver noChemistrySolver; chemistryThermo psi; } Selecting thermodynamics package { type hePsiThermo; mixture multiComponentMixture; 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) |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Simon Braungardt
Join Date: Oct 2015
Posts: 2
Rep Power: 0 ![]() |
Hi,
I have the same problem. have you found any solution? // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Clint
Join Date: Sep 2015
Posts: 10
Rep Power: 10 ![]() |
It's hard to say exactly, I just happen to have recently run into a similar error. My first guess would be that you should be using a reactingMixture rather than a multiComponentMixture in your thermophysicalProperties dictionary file.
The error you are getting is telling you that a dynamic_cast<> somewhere is going wrong. I think it is probably this one in the constructor for ChemistyModel Code:
reactions_ ( dynamic_cast<const reactingMixture<ThermoType>&>(this->thermo()) ), |
|
![]() |
![]() |
![]() |
Tags |
reactingfoam; |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Error running #codeStream/functions wmake lnInclude fails to open *.H Files | tarik | OpenFOAM Installation | 8 | June 14, 2020 03:12 |
[foam-extend.org] Foam Extend 3.2 in ubuntu 16.04 LTS | JMosiezny | OpenFOAM Installation | 15 | December 9, 2017 08:20 |
What do you all do to stabilize reactingFoam (or in general)? | KarenRei | OpenFOAM Running, Solving & CFD | 7 | December 11, 2016 14:34 |
Running reactingFoam in turbulence mode | samchen1993 | OpenFOAM Running, Solving & CFD | 1 | September 25, 2016 16:16 |
OpenFOAM parallel on VM? pimpleDyMFoam propeller tutorial has been running for hours. | MBttR | OpenFOAM Running, Solving & CFD | 0 | June 13, 2016 10:58 |