|
[Sponsors] |
January 25, 2016, 10:59 |
Drived Boundary Conditions
|
#1 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hi,
i tried to drive a new boundary condition in heat transfer module, at the end when i tried to run wmake command , the error below showed up. can anyone help me? thank You `````````````````````````````````````````````````` `````````````````````````````````````````````````` ``````````````````````` convectiveHeatFluxFvPatchScalarField.C:109:64: error: invalid initialization of reference of type ‘const Foam::fvsPatchField<double>&’ from expression of type ‘const PatchFieldType {aka const Foam::fvPatchField<double>}’ patch().lookupPatchField<volScalarField, scalar>(TName_); `````````````````````````````````````````````````` `````````````````````````````````````````````````` ````````````````````````` and this is my convectiveHeatFluxFvPatchScalarField.C file . i've attached it. the error says problem is in line 109 ! |
|
January 27, 2016, 12:42 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
Line 109 is:
Code:
const fvsPatchField<scalar>& T = patch().lookupPatchField<volScalarField, scalar>(TName_); What is T supposed to be? Maybe try changing it to an fvPatchField.
__________________
~~~ Follow me on twitter @DavidGaden |
|
January 27, 2016, 13:04 |
|
#3 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
yeah David. you are right. there was an addition 's' in the code .
T represent the temperature field . |
|
Tags |
boundary condition, convection, temperature |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
GETVAR Error in Multiband Monte Carlo Radiation Simulation with Directional Source | silvan | CFX | 3 | June 16, 2014 10:49 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |