CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Cannot use thermophysical properties in new boundary condition

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2016, 07:53
Default Cannot use thermophysical properties in new boundary condition
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road

I have tried to make a new boundary condition for temperature.
Solver: compressibleInterFoam
Version: 3.0.x

I want to use kappa (thermal diffusivity) to calculate the boundary value.
Everything works fine as long as I write a fix value in the equation.
However, when I try to use kappa from the thermophysical model I get an error message.

Obviously I miss I just don't know what and I am out of ideas.

.H and .C files are attached, options, files and error message are below:
    -I$(FOAM_SOLVERS)/multiphase/compressibleInterFoam/twoPhaseMixtureThermo \
    -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
    -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
    -I$(LIB_SRC)/turbulenceModels/lnInclude \
    -I$(LIB_SRC)/transportModels/compressible/lnInclude \
    -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \

    -ltwoPhaseMixtureThermo \
    -lcompressibleTurbulenceModels \
    -lcompressibleTransportModels \
    -ltwoPhaseMixture \
    -lfluidThermophysicalModels \
    -lturbulenceModels \
    -lspecie \
    -lfiniteVolume \

LIB = $(FOAM_USER_LIBBIN)/libsimpilfiedTransientHeat
wmakeLnInclude: linking include files to ./lnInclude
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-3.0.x/applications/solvers/multiphase/compressibleInterFoam/twoPhaseMixtureThermo -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels/twoPhaseMixture/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/thermophysicalModels/specie/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude   -fPIC -c simplifiedTransHeatFvPatchScalarField.C -o Make/linux64GccDPInt32Opt/simplifiedTransHeatFvPatchScalarField.o
simplifiedTransHeatFvPatchScalarField.C: In member function ‘virtual void Foam::simplifiedTransHeatFvPatchScalarField::updateCoeffs()’:
simplifiedTransHeatFvPatchScalarField.C:176:24: error: request for member ‘kappa’ in ‘Foam::mixture’, which is of non-class type ‘Foam::twoPhaseMixtureThermo(const Foam::fvMesh&)’
       * exp((- mixture.kappa(patchi)*patch().deltaCoeffs()*t)
/opt/OpenFOAM/OpenFOAM-3.0.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/simplifiedTransHeatFvPatchScalarField.o' failed
make: *** [Make/linux64GccDPInt32Opt/simplifiedTransHeatFvPatchScalarField.o] Error 1
Kind regards
Attached Files
File Type: h simplifiedTransHeatFvPatchScalarField.H (6.2 KB, 4 views)
File Type: c simplifiedTransHeatFvPatchScalarField.C (5.5 KB, 1 views)
TobM is offline   Reply With Quote


compressibleinterfoam, thermophysicalproperties

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
Velocity profile boundary condition Tuca FLOW-3D 1 April 23, 2013 12:02
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
boundary condition and differenet constant properties for for two different region. alvora OpenFOAM 2 January 25, 2011 04:08
asking for Boundary condition in FLUENT Destry FLUENT 0 July 27, 2010 00:55
How exactly the "pressure outlet" bdry condition compute properties on the boundary? yating9901 FLUENT 3 June 28, 2010 12:26

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