|
[Sponsors] |
April 1, 2018, 04:50 |
BC of wideBandAbsorptionEmission
|
#1 |
Member
Jung da yoon
Join Date: Nov 2017
Posts: 53
Rep Power: 8 |
Hello all!!
I have tried to use wideBandAbsorptionEmission model. But I don't know the form of BC. This is the constant directory. Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object radiationProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // radiation on; radiationModel fvDOM; fvDOMCoeffs { nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) nTheta 6; // polar angles in PI (from Z to X-Y plane) convergence 1e-6; // convergence criteria for radiation iteration maxIter 1000; // maximum number of iterations } // Number of flow iterations per radiation iteration solverFreq 1; absorptionEmissionModel wideBandAbsorptionEmission; constantAbsorptionEmissionCoeffs { absorptivity absorptivity [ 0 -1 0 0 0 0 0 ] 1; emissivity emissivity [ 0 -1 0 0 0 0 0 ] 0; E E [ 1 -1 -3 0 0 0 0 ] 0.05; } scatterModel none; // ************************************************************************* // But I have to modify constantAbsorptionEmissionCoeffs part with below code. Code:
band0 { bandLimits (1.0e-6 2.63e-6); EhrrCoeff 0.0; species { CH4 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } CO2 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } H2O { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } Ysoot { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } } } Thank you for replying in advance. Best regards. |
|
April 2, 2018, 02:04 |
|
#2 |
Member
Jung da yoon
Join Date: Nov 2017
Posts: 53
Rep Power: 8 |
Hello.
I have tried to use 'wideBandAbsorptionEmission' model. But it is hard to use. 1. constant/radiationProperties Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object radiationProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // radiation on; radiationModel fvDOM; fvDOMCoeffs { nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) nTheta 6; // polar angles in PI (from Z to X-Y plane) convergence 1e-6; // convergence criteria for radiation iteration maxIter 1000; // maximum number of iterations } // Number of flow iterations per radiation iteration solverFreq 1; absorptionEmissionModel wideBandAbsorptionEmission; wideBandAbsorptionEmissionCoeffs { absorptivity absorptivity [ 0 -1 0 0 0 0 0 ] 1; emissivity emissivity [ 0 -1 0 0 0 0 0 ] 1; E E [ 1 -1 -3 0 0 0 0 ] 0; } band0 { bandLimits (1.0e-5 2.63e-5); EhrrCoeff 0.0; species { CH4 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } CO2 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } H2O { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } Ysoot { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } } } // ************************************************************************* // Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 5.0 Exec : radiationFoam Date : Apr 02 2018 Time : 13:56:02 Host : "master" PID : 8796 I/O : uncollated Case : /home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure 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 SIMPLE: convergence criteria field "ILambda.*" tolerance 1e-06 Reading Temperature field Selecting radiationModel fvDOM Selecting absorptionEmissionModel wideBandAbsorptionEmission --> FOAM FATAL IO ERROR: keyword lookUpTableFileName is undefined in dictionary "/home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure/constant/radiationProperties.wideBandAbsorptionEmissionCoeffs" file: /home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure/constant/radiationProperties.wideBandAbsorptionEmissionCoeffs from line 37 to line 39. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 566. FOAM exiting What is the problem ?? I think some codes in radiationProperties file was wrong. Best regards |
|
April 5, 2018, 10:42 |
|
#3 |
Member
Jung da yoon
Join Date: Nov 2017
Posts: 53
Rep Power: 8 |
hi all
Does anyone have 'widebandabsorptionemission' case?? |
|
April 7, 2018, 10:37 |
|
#4 |
Member
Jung da yoon
Join Date: Nov 2017
Posts: 53
Rep Power: 8 |
Hello all.
I have tried to run widebandabsorptionEmission model. But I have failed. I don't know the problem. This is radiationProperties file. Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object radiationProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // radiation on; radiationModel fvDOM; fvDOMCoeffs { nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) nTheta 6; // polar angles in PI (from Z to X-Y plane) tolerance 1e-6; // convergence tolerance for radiation iteration maxIter 1000; // maximum number of iterations } // Number of flow iterations per radiation iteration solverFreq 1; absorptionEmissionModel wideBandAbsorptionEmission; constantAbsorptionEmissionCoeffs { absorptivity absorptivity [ m^-1 ] 0.01; emissivity emissivity [ m^-1 ] 0.01; E E [ kg m^-1 s^-3 ] 0; } wideBandAbsorptionEmissionCoeffs { lookUpTableFileName "thermophysicalProperties"; band0 { bandLimits (1.0e-6 2.63e-6); EhrrCoeff 0.0; species { CH4 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } CO2 { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } H2O { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } Ysoot { Tcommon 300.; Tlow 300.; Thigh 2500.; invTemp false; loTcoeffs (0 0 0 0 0 0) ; hiTcoeffs (.1 0 0 0 0 0); } } } scatterModel none; sootModel none; // ************************************************************************* // So I set lookuptablefilename as "thermo.compressiblegas" And this is thermo.compressiblegas Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object thermo.compressibleGas; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // O2 { specie { molWeight 31.9988; } thermodynamics { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); } transport { As 1.67212e-06; Ts 170.672; } } H2O { specie { molWeight 18.0153; } thermodynamics { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); } transport { As 1.67212e-06; Ts 170.672; } } CH4 { specie { molWeight 16.0428; } thermodynamics { Tlow 200; Thigh 6000; Tcommon 1000; highCpCoeffs ( 1.63543 0.0100844 -3.36924e-06 5.34973e-10 -3.15528e-14 -10005.6 9.9937 ); lowCpCoeffs ( 5.14988 -0.013671 4.91801e-05 -4.84744e-08 1.66694e-11 -10246.6 -4.64132 ); } transport { As 1.67212e-06; Ts 170.672; } } CO2 { specie { molWeight 44.01; } thermodynamics { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 4.45362 0.00314017 -1.27841e-06 2.394e-10 -1.66903e-14 -48967 -0.955396 ); lowCpCoeffs ( 2.27572 0.00992207 -1.04091e-05 6.86669e-09 -2.11728e-12 -48373.1 10.1885 ); } transport { As 1.67212e-06; Ts 170.672; } } N2 { specie { molWeight 28.0134; } thermodynamics { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); } transport { As 1.67212e-06; Ts 170.672; } } Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 5.0 Exec : radiationFoam Date : Apr 07 2018 Time : 22:23:36 Host : "master" PID : 28926 I/O : uncollated Case : /home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure 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 SIMPLE: convergence criteria field "ILambda.*" tolerance 1e-06 Reading Temperature field Selecting radiationModel fvDOM Selecting absorptionEmissionModel wideBandAbsorptionEmission --> FOAM FATAL IO ERROR: keyword fields is undefined in dictionary "/home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure/constant/thermophysicalProperties" file: /home/dayoon15/OpenFOAM/dayoon15-5.0/run/tutorials/heatTransfer/Enclosure/constant/thermophysicalProperties from line 20 to line 37. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 566. FOAM exiting Best regards. |
|
September 24, 2021, 04:35 |
|
#5 | |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 |
Quote:
lookUpTableFileName none;then paste the band0 code written in radiation properties file inside constant folder as stated in Openfoam guide. Regards, Bushra. |
||
|
|