CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Multiplication of source term with div(T) is causing error (https://www.cfd-online.com/Forums/openfoam-programming-development/242943-multiplication-source-term-div-t-causing-error.html)

saicharan662000@gmail.com May 20, 2022 07:30

Multiplication of source term with div(T) is causing error
 
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


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