|
[Sponsors] |
March 21, 2021, 10:52 |
Pyrolysis Model - Thermal Conductivity
|
#1 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 |
Hello,
I have this new conduction equation and I was wondering how to insert it into OpenFOAM Code:
pcdT/dt = d/dx(kdT/dx) with k = keff if x< du or k = k if x> du I appreciate the assistance. |
|
April 15, 2021, 17:10 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8 |
The Equation can be written as follow in a new file TEqn.H....This file can be created in solver directory using touch TEqn.H
Code:
fvScalarMatrix TEqn ( fvm::ddt(T) == fvm::laplacian(alphat, T) ); TEqn.solve(); Code:
tmp <volScalarField> alphat = K/(rho*cp); Code:
const fvMesh& mesh = U.mesh(); volScalarField Ycord = mesh.C().component(vector::Y);// assuming Y is the vertical forAll(K,celli) { if (Ycord[celli] <= DU.value()) { K[celli] = Keff.value()/(rho.value()*cp.value()); } else { K[celli] = K2.value()/(rho.value()*cp.value());; } } Code:
// Density dimensionedScalar rho(transportProperties.lookup("rho")); // sPECIFIC HEAT dimensionedScalar cp(transportProperties.lookup("cp")); // Threshold vertical length dimensionedScalar DU(transportProperties.lookup("DU")); // Keff dimensionedScalar Keff(transportProperties.lookup("Keff")); // K2 dimensionedScalar K2(transportProperties.lookup("K2")); Info<< "Reading field Thermal Conductivity \n" << endl; volScalarField K ( IOobject ( "K", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh ); |
|
May 24, 2021, 09:05 |
|
#3 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 |
Hi SHUBHAM9595,
Thanks a lot for your reply. It has truly been helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
user defined mixing law for thermal conductivity | Weiqiang Liu | FLUENT | 2 | June 26, 2020 07:23 |
effective thermal conductivity and mass weighted thermal conductivity | Weiqiang Liu | FLUENT | 8 | June 19, 2020 00:08 |
Question about anisotropic thermal conductivity | Szweyk | STAR-CCM+ | 2 | June 30, 2016 08:26 |
Effective thermal conductivity in Full Porous Model | Ev Fa | CFX | 0 | February 2, 2016 07:16 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 13:32 |