遇到的openfoam报错整理(持续更新)

在用自己的构型适用于reactingFoam,反应物是C7H16和空气,目前修改了边界条件和反应机理等,已解决问题1

问题1:

--> FOAM FATAL ERROR:
Sum of mass fractions is zero for species
544
(
各种组分

From function void Foam::basicSpecieMixture::correctMassFractions()
in file mixtures/basicSpecieMixture/basicSpecieMixture.C at line 205.

FOAM exiting

解决方法:看0文件里有无以上涉及的组分,组分之和必须为1,我是修改后0文件里原本是C7H16,但调用的反应机理里面是NC7H16,更改了文件名后错误消失。

问题2:

/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  9
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 9-c96968adf6d8
Exec   : reactingFoam
Date   : Apr 26 2023
Time   : 08:29:07
Host   : "yang-Kuangshi-X-Series-GM7AG7N"
PID    : 12197
I/O    : uncollated
Case   : /home/yang/OpenFOAM/yang-9/run/smartinjection4.24
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: No convergence criteria found


PIMPLE: Operating solver in transient mode with 1 outer corrector
PIMPLE: Operating solver in PISO mode


Reading thermophysical properties

Selecting thermodynamics package
{
    type            heRhoThermo;
    mixture         multiComponentMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}

Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Prt             0.85;
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

Creating thermophysical transport model

Selecting thermophysical transport type RAS
Selecting default RAS thermophysical transport model unityLewisEddyDiffusivity
Creating reaction model

Combustion model not active: combustionProperties not found
Selecting combustion model none
Creating field dpdt

Creating field kinetic energy K

No MRF models present

No fvModels present
No fvConstraints present
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::nutkWallFunctionFvPatchScalarField::nut() const at ??:?
#4  Foam::nutWallFunctionFvPatchScalarField::updateCoeffs() at ??:?
#5  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
#6  Foam::RASModels::kEpsilon<Foam::CompressibleMomentumTransportModel<Foam::dynamicTransportModel> >::correctNut() at ??:?
#7  ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
#8  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10  ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
Floating point exception (core dumped)

问题3:c7h16单步化学反应机理的reactingfoam 

--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = 23.14951573

Time = 4.3e-06

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
DILUPBiCGStab:  Solving for Ux, Initial residual = 0.8932644369, Final residual = 0.01804921196, No Iterations 1
DILUPBiCGStab:  Solving for Uy, Initial residual = 0.7925881184, Final residual = 0.04676651581, No Iterations 1
DILUPBiCGStab:  Solving for Uz, Initial residual = 0.8082444789, Final residual = 0.07178631378, No Iterations 1
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
#3  ? in /lib/x86_64-linux-gnu/libm.so.6
#4  Foam::combustionModels::EDC<Foam::psiReactionThermo>::correct() at ??:?
#5  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
#6  ? in /lib/x86_64-linux-gnu/libc.so.6
#7  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#8  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
Floating point exception (core dumped)

问题4:用了gri3.0的reactingfoam(燃烧模型EDM)

--> FOAM FATAL ERROR: (openfoam-2206)
Inconsistent thermo package for CombustionModel<psiReactionThermo> model:
    hePsiThermo<reactingMixture<sutherland<janaf<perfectGas<specie>>,sensibleEnthalpy>>>

Please select a thermo package based on singleStepReactingMixture

    From Foam::combustionModels::singleStepCombustion<ReactionThermo, ThermoType>::singleStepCombustion(const Foam::word&, ReactionThermo&, const Foam::compressibleTurbulenceModel&, const Foam::word&) [with ReactionThermo = Foam::psiReactionThermo; ThermoType = Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> >]
    in file lnInclude/singleStepCombustion.C at line 75.

FOAM exiting

问题5:用了gri3.0的reactingfoam(燃烧模型EDC)

Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Using LTS
Reading thermophysical properties

Selecting thermodynamics package
{
    type            hePsiThermo;
    mixture         reactingMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}

Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Prt             0.85;
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

Creating reaction model

Selecting combustion model EDC
Selecting chemistry solver
{
    solver          ode;
    method          standard;
}

StandardChemistryModel: Number of species = 544 and reactions = 2446
Selecting ODE solver seulex
    using integrated reaction rate
Creating field dpdt

Creating field kinetic energy K

No MRF models present

No finite volume options present

Starting time loop

Time scales min/max:
    Flow        = 9.931677386e-08, 0.0001
    Temperature = 1e+300, 1e+300
    Composition = 1e+300, 1e+300
    Overall     = 9.931677386e-08, 0.0001
Time = 1e-07

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
DILUPBiCGStab:  Solving for Ux, Initial residual = 1, Final residual = 2.322751201e-16, No Iterations 1
DILUPBiCGStab:  Solving for Uy, Initial residual = 1, Final residual = 8.928355209e-17, No Iterations 1
DILUPBiCGStab:  Solving for Uz, Initial residual = 1, Final residual = 1.099301832e-16, No Iterations 1
Chemistry time solved max/min : 0 / 0
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
#3  double Foam::StandardChemistryModel<Foam::psiReactionThermo, Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::solve<Foam::Field<double> >(Foam::Field<double> const&) at ??:?
#4  Foam::combustionModels::EDC<Foam::psiReactionThermo>::correct() at ??:?
#5  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
#6  ? in /lib/x86_64-linux-gnu/libc.so.6
#7  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#8  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
Floating point exception (core dumped)

问题6:改七改八不知道改出了个啥玩意

--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -348.7413834
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -357.1173073
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -642.2389819
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -654.7336172
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -586.8210643
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = -598.5484188
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = 191.7211225
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = 190.9258018
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = 158.245464
--> FOAM Warning :
    From Foam::scalar Foam::janafThermo<EquationOfState>::limit(Foam::scalar) const [with EquationOfState = Foam::perfectGas<Foam::specie>; Foam::scalar = double]
    in file /opt/OpenFOAM-v2206/src/thermophysicalModels/specie/lnInclude/janafThermoI.H at line 120
    attempt to use janafThermo<EquationOfState> out of temperature range 200 -> 5000;  T = 156.9752934
min/max(T) = 200, 5000
DICPCG:  Solving for p, Initial residual = 0.2776863156, Final residual = 6.681837376e-07, No Iterations 1
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 1.998430897e-07, global = 8.558466776e-08, cumulative = 8.682383884e-06
DICPCG:  Solving for p, Initial residual = 0.008298322922, Final residual = 7.419768043e-08, No Iterations 1
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 4.185531302e-08, global = 2.538559952e-08, cumulative = 8.707769484e-06
DILUPBiCGStab:  Solving for epsilon, Initial residual = 0.01101147019, Final residual = 4.417456436e-07, No Iterations 1
bounding epsilon, min: -2.841173778e+29 max: 6.936160996e+30 average: 2.531930651e+26
DILUPBiCGStab:  Solving for k, Initial residual = 1.944555359e-12, Final residual = 1.944555359e-12, No Iterations 0
ExecutionTime = 467.37 s  ClockTime = 469 s

Time scales min/max:
    Flow        = 2.528261534e-12, 0.0001
    Temperature = 7.245868382e+83, 1e+300
    Composition = 1e+300, 1e+300
    Overall     = 2.528261534e-12, 5.165711841e-05
Time = 5.7e-06

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
DILUPBiCGStab:  Solving for Ux, Initial residual = 0.912797583, Final residual = 0.03907631423, No Iterations 1
DILUPBiCGStab:  Solving for Uy, Initial residual = 0.8698878836, Final residual = 0.0217991991, No Iterations 1
DILUPBiCGStab:  Solving for Uz, Initial residual = 0.7918226439, Final residual = 0.05245962132, No Iterations 1
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
#3  ? in /lib/x86_64-linux-gnu/libm.so.6
#4  Foam::combustionModels::EDC<Foam::psiReactionThermo>::correct() at ??:?
#5  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
#6  ? in /lib/x86_64-linux-gnu/libc.so.6
#7  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#8  ? in /opt/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/reactingFoam
Floating point exception (core dumped)

问题7:用of9已成功调用的reactingfoam改

Create time

Create mesh for time = 0


PIMPLE: No convergence criteria found


PIMPLE: Operating solver in transient mode with 1 outer corrector
PIMPLE: Operating solver in PISO mode


Using LTS
Reading thermophysical properties

Selecting thermodynamics package
{
    type            heRhoThermo;
    mixture         multiComponentMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}

Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting turbulence model type RAS
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Prt             0.85;
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    C3              0;
    sigmak          1;
    sigmaEps        1.3;
}

Creating thermophysical transport model

Selecting thermophysical transport type RAS
Selecting default RAS thermophysical transport model unityLewisEddyDiffusivity
Creating reaction model

Selecting combustion model EDC
Selecting chemistry solver
{
    solver          ode;
    method          standard;
}

standardChemistryModel: Number of species = 544 and reactions = 2446
Selecting ODE solver seulex
Creating field dpdt

Creating field kinetic energy K

No MRF models present

No fvModels present
No fvConstraints present

Starting time loop

Time scales min/max:
    Flow        = 9.728569846e-08, 0.0001
    Temperature = 4.494232837e+307, 4.494232837e+307
    Composition = 4.494232837e+307, 4.494232837e+307
    Overall     = 9.728569846e-08, 0.0001
Time = 1e-07

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCGStab:  Solving for Ux, Initial residual = 1, Final residual = 0.0001092756986, No Iterations 1
DILUPBiCGStab:  Solving for Uy, Initial residual = 1, Final residual = 0.006862564884, No Iterations 1
DILUPBiCGStab:  Solving for Uz, Initial residual = 1, Final residual = 0.0001167898495, No Iterations 1
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  double Foam::standardChemistryModel<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::solve<Foam::Field<double> >(Foam::Field<double> const&) at ??:?
#4  Foam::combustionModels::EDC::correct() at ??:?
#5  ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
#6  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8  ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
Floating point exception (core dumped)

引用\[1\]:No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display. 。 引用\[2\]:报错原因: 在本地登陆服务器,执行程序的可视化界面传递到本地的屏幕之中,但是报错 qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display. 二、解决方法 。 引用\[3\]:问题描述: 已经使用docker的方式安装好了OpenFOAM,本以为可以愉快的开始使用了,却没想到在后处理打开paraView的时候遇到问题,错误提示: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-openfoam’ No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display. 。 问题:qt.qpa.screen: QXcbConnection: Could not connect to display是什么问题?如何解决? 回答: qt.qpa.screen: QXcbConnection: Could not connect to display是一个错误提示,意味着无法连接到显示器。这个问题通常出现在本地登录服务器并尝试将程序的可视化界面传递到本地屏幕时。\[1\]解决这个问题的方法是设置正确的X显示环境。可以尝试在服务器上设置DISPLAY环境变量,或者使用SSH的-X或-Y选项进行远程连接。\[2\]另外,如果使用docker安装OpenFOAM并在后处理过程中遇到这个问题,可以尝试设置XDG_RUNTIME_DIR环境变量为/tmp/runtime-openfoam。\[3\]这些方法应该能够解决qt.qpa.screen: QXcbConnection: Could not connect to display的问题。 #### 引用[.reference_title] - *1* [【记录】qt.qpa.screen: Could not connect to any X display 解决方案](https://blog.csdn.net/yaoyao_chen/article/details/124908362)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display.](https://blog.csdn.net/jerry_liufeng/article/details/120247325)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Linux下启动paraview失败](https://blog.csdn.net/weixin_45793544/article/details/114263174)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值