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

multiphaseinterfoam with temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2016, 10:15
Unhappy multiphaseinterfoam with temperature
  #1
Member
 
Thomas Flint
Join Date: Jan 2016
Posts: 60
Rep Power: 10
tom_flint2012 is on a distinguished road
Hello,

I am trying to implement temperature in the multiphaseinterfoam solver. Firstly I am trying to read in a transport property that I have called kappasolid. I have modified the phase.c, phase.h , multiphaseMixture.h and multiphasemixture.c files are attatched to this post.


I'm then trying to set a field in the createFields.H file by "
Code:
volScalarField kappa
    (
        IOobject
        (
            "kappa",
            runTime.timeName(),
            mesh
        ),
        mixture.kappasolid()
    );
but I'm getting an "undefined reference to `Foam::multiphaseMixture::kappasolid() const" error when I run the Allwmake script.

Has anyone managed to add a temperature to multiphaseinterfoam, or can anyone better at c++ see a daft mistake? This is really bothering me. I think maybe I've defined something incorrectly or not linked the right library but I feel like I've tried everything. Any help would be greatly appreciated.

Tom
Attached Files
File Type: h multiphaseMixture.H (7.5 KB, 10 views)
File Type: c multiphaseMixture.C (18.2 KB, 13 views)
File Type: h phase.H (5.9 KB, 9 views)
File Type: c phase.C (3.9 KB, 7 views)
tom_flint2012 is offline   Reply With Quote

Old   February 17, 2016, 19:21
Default
  #2
Member
 
Thomas Flint
Join Date: Jan 2016
Posts: 60
Rep Power: 10
tom_flint2012 is on a distinguished road
When I ./Allwclean and ./Allwmake the solver the error log I get is:

Quote:
+ wclean libso multiphaseMixture
wclean multiphaseMixture
+ wclean
+ wclean multiphaseInterDyMFoam
wclean multiphaseInterDyMFoam
flint@Flint-lenovo:~/Desktop/OpenFoam_Flint/custom_solvers/Flint_multiphaseintermeltingFoam$ ./Allwmake
+ wmake libso multiphaseMixture
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file phase/phase.C
Making dependency list for source file alphaContactAngle/alphaContactAngleFvPatchScalarField.C
Making dependency list for source file multiphaseMixture.C
SOURCE=phase/phase.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IalphaContactAngle -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/lnInclude -I/opt/openfoam240/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam240/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/phase.o
SOURCE=alphaContactAngle/alphaContactAngleFvPatchScalarField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IalphaContactAngle -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/lnInclude -I/opt/openfoam240/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam240/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/alphaContactAngleFvPatchScalarField.o
SOURCE=multiphaseMixture.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IalphaContactAngle -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/lnInclude -I/opt/openfoam240/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam240/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/multiphaseMixture.o
'/home/flint/OpenFOAM/flint-2.4.0/platforms/linux64GccDPOpt/lib/libmultiphaseInterFoam.so' is up to date.
+ wmake
Making dependency list for source file Flint_multiphaseInterMeltingFoam.C
SOURCE=Flint_multiphaseInterMeltingFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -ImultiphaseMixture/lnInclude -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/lnInclude -I/opt/openfoam240/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam240/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/fvOptions/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/Flint_multiphaseInterMeltingFoam.o
In file included from Flint_multiphaseInterMeltingFoam.C:52:0:
/opt/openfoam240/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/opt/openfoam240/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
scalar maxDeltaT =
^
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -ImultiphaseMixture/lnInclude -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/lnInclude -I/opt/openfoam240/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam240/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/fvOptions/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/Flint_multiphaseInterMeltingFoam.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
-L/home/flint/OpenFOAM/flint-2.4.0/platforms/linux64GccDPOpt/lib -lmultiphaseInterFoam -linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lOpenFOAM -ldl -lm -o /home/flint/OpenFOAM/flint-2.4.0/platforms/linux64GccDPOpt/bin/Flint_multiphaseInterMeltingFoam
Make/linux64GccDPOpt/Flint_multiphaseInterMeltingFoam.o: In function `main':
Flint_multiphaseInterMeltingFoam.C.text.startup+ 0x87a): undefined reference to `Foam::multiphaseMixture::kappasolid() const'
collect2: error: ld returned 1 exit status
make: *** [/home/flint/OpenFOAM/flint-2.4.0/platforms/linux64GccDPOpt/bin/Flint_multiphaseInterMeltingFoam] Error 1

If this is of any help. Any help with this problem would be greatly appreciated.
tom_flint2012 is offline   Reply With Quote

Reply

Tags
multiphaseinterfoam, temperature, transportproperties


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
Shadow Wall and temperature norger FLUENT 10 September 28, 2019 12:43
fluid flow but temperature raises from nowhere? mxcfd STAR-CCM+ 5 September 16, 2014 06:46
How to get free stream temperature in boundary condition saharesobh FLUENT 0 October 9, 2012 18:12
where is the calculation of the temperature field Tobi OpenFOAM 1 July 30, 2012 11:40
monitoring point of total temperature rogbrito FLUENT 0 June 21, 2009 18:31


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