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

Multiplication of source term with div(T) is causing error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2022, 07:30
Default Multiplication of source term with div(T) is causing error
  #1
Member
 
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 96
Rep Power: 4
saicharan662000@gmail.com is on a distinguished road
Hi guys,
I implemented TEqn in interPhaseChangeFoam. Now I am implementing source terms .
For that I have to multiply my thermal conductivity(K) with div(T).

My code lookks like this
Code:
Foam::tmp<Foam::volScalarField> 
Foam::phaseChangeTwoPhaseMixtures::myPhaseChange::kappaGradT() const
{

const volScalarField limalpha1(min(max((alpha1()), scalar(0)), scalar(1)));
const volScalarField& T = alpha1().db().lookupObject<volScalarField>("T");

  return
    ( 
      (limalpha1*lambda1_+ (1-limalpha1)*lambda2_) * div(T)
    );


}

My phase change model compiled well and also the solver . But when I run the test case its giving the following error
Code:
  hari@hari:~/OpenFOAM/hari-8/run/suckingInterface_6$ interPhaseChangeFoam_5
  interPhaseChangeFoam_5: symbol lookup error: /home/hari/OpenFOAM/hari-8/platforms/linux64GccDPInt32Opt/lib/libphaseChangeTwoPhaseMixtures.so: undefined symbol: _ZN4Foam2fv9divSchemeIdE27IstreamConstructorTablePtr_E
Can anyone suggest me whats wrong in my code
saicharan662000@gmail.com is offline   Reply With Quote

Reply

Tags
interphasechangefoam, openfoam8

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


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