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

Get access to Temperature at chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2017, 16:15
Default Get access to Temperature at chtMultiRegionFoam
  #1
New Member
 
Deutschland
Join Date: Mar 2016
Posts: 12
Rep Power: 10
Perschr is on a distinguished road
Hey guys,

I just start programming with OpenFoam and would like to add some diffusionequation into chtMultiregionFoam.
I added a new volScalarField in the createSolidField.H -File. The volScalarField should be calculated by an include "calcHumidity.H" file. How can I get access to the Temperature at the "calcHumidity.H"-File?

So far I don't understand the calculation within the solidThermo.

Thanks in advance.
Perschr is offline   Reply With Quote

Old   June 27, 2017, 15:13
Default Compiling Error: Is the operator the problem
  #2
New Member
 
Deutschland
Join Date: Mar 2016
Posts: 12
Rep Power: 10
Perschr is on a distinguished road
Dear Foamer,

As mentioned I'm try to add some passive scalar equation to chtMultiregionFoam.
Can someone give me a hint, what the problem is, when compiling? There seems to be a problem with the operator *. But what? Do I have to include any further files? Sorry but I cannot get more out of that error message! Thanks!

PHP Code:
                     p margin-bottom0.25cmline-height120%; }   In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8,
                  
from vapourFoam.C:36:
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2221:33notecandidatetemplate<class TypeFoam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::tmp<Foam::GeometricField<doubleFoam::fvPatchFieldFoam::volMesh> >&, const Foam::tmp<Foam::fvMatrix<Type> >&)
  
Foam::tmp<Foam::fvMatrix<Type>> Foam::operator*
                                  ^
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2221:33note:   template argument deduction/substitution failed:
 
In file included from ./solid/solveSolid.H:31:0,
                  
from vapourFoam.C:110:
 ./
solid/calcparPresSolid.H:4:42note:   cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<doubleFoam::fvPatchFieldFoam::volMesh> >to type ‘const Foam::tmp<Foam::GeometricField<doubleFoam::fvPatchFieldFoam::volMesh> >&
      parPresSolid 
relativeHumiditySolid*pSatSolid;    //JEAL
                                           
^
 
In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8,
                  
from vapourFoam.C:36:
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2233:33notecandidatetemplate<class TypeFoam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::dimensioned<double>&, const Foam::fvMatrix<Type>&)
  
Foam::tmp<Foam::fvMatrix<Type>> Foam::operator*
                                  ^
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2233:33note:   template argument deduction/substitution failed:
 
In file included from ./solid/solveSolid.H:31:0,
                  
from vapourFoam.C:110:
 ./
solid/calcparPresSolid.H:4:42note:   cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<doubleFoam::fvPatchFieldFoam::volMesh> >to type ‘const Foam::dimensioned<double>&
      parPresSolid 
relativeHumiditySolid*pSatSolid;    //JEAL
                                           
^
 
In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44,
                  
from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8,
                  
from vapourFoam.C:36:
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2245:33notecandidatetemplate<class TypeFoam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::dimensioned<double>&, const Foam::tmp<Foam::fvMatrix<Type> >&)
  
Foam::tmp<Foam::fvMatrix<Type>> Foam::operator*
                                  ^
 /
home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2245:33note:   template argument deduction/substitution failed:
 
In file included from ./solid/solveSolid.H:31:0,
                  
from vapourFoam.C:110:
 ./
solid/calcparPresSolid.H:4:42note:   cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<doubleFoam::fvPatchFieldFoam::volMesh> >to type ‘const Foam::dimensioned<double>&
      parPresSolid 
relativeHumiditySolid*pSatSolid
Perschr 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
heat transfer coefficient value in floefd jason kid FloEFD, FloWorks & FloTHERM 10 October 16, 2016 16:55
specified shear at wall - temperature gradient - UDF - access violation error senD Fluent UDF and Scheme Programming 9 September 18, 2014 07:29
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Can we have access temperature derivatives??? behrang2009 Fluent UDF and Scheme Programming 0 July 29, 2010 19:21
Increasing chtMultiRegionFoam Fluid Temperature m.nichols19 OpenFOAM 0 June 28, 2010 15:11


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