CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Replace H equation with Teqn in chtMultiregionFoam OF 2.3

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2014, 20:37
Default Replace H equation with Teqn in chtMultiregionFoam OF 2.3
  #1
New Member
 
Monssif
Join Date: Mar 2014
Posts: 5
Rep Power: 12
Moncef is on a distinguished road
Hi everybody,
I'm trying to replace sensible enthalpy equation in solid region with Teqn, so instead of write thermo.h() I replace it with thermo.T() in setRegionSolidFields.H
volScalarField& T = thermo.T(); and for kappa
tmp<volVectorField> tK = thermo.Kappa();
const volVectorField& K = tK();


and then I wrote the Teq as follow:
Code:
        fvScalarMatrix TEqn
        (
            fvm::ddt(rho*cp, T)
          - fvm::laplacian(K, T)
        );
        TEqn.solve();
    Info<< "Min/max T:" << min(T) << ' ' << max(T) << endl;
But when I compile I get this error:
/usr/bin/ld: cannot find -lthermophysicalModels
I use OpenFoam 2.3
Thanks,
Best regards and have a nice day.
Moncef is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rotational and inviscid Mike Main CFD Forum 40 November 9, 2023 06:03
Poisson equation vs continuity equation DJ Main CFD Forum 1 August 5, 2004 20:01
continuity equation for the mixture mateus Main CFD Forum 0 May 2, 2003 03:59
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 08:14
Boundary conditions in a Poisson's equation? vincent Main CFD Forum 4 April 16, 1999 02:19


All times are GMT -4. The time now is 01:52.