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

new curvature model with interFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 19, 2009, 12:13
Default new curvature model with interFoam
  #1
New Member
 
Chris
Join Date: Oct 2009
Posts: 5
Rep Power: 16
DaChris is on a distinguished road
Hi,

I want to test a new curvature model by using InterFoam. When I try to compile the following code I get an error, but I don't know how to fix it. I hope, someone can help me.

Code:
//Cell gradient of gamma
    volVectorField gradGamma = fvc::grad(gamma);
    // Interpolated face-gradient of gamma
    
    surfaceScalarField phiGradGamma = fvc::interpolate(gradGamma)& mesh.Sf();
     
    //curvature  
    surfaceScalarField kappa =     ((1) / mag(gradGamma))
                    * (((gradGamma)/(mag(gradGamma))) 
                    * fvc::grad(mag(gradGamma)) 
      //line.29=>              - fvc::div(phiGradGamma));
And this is the first error:
Quote:
curvature.H:29: error: conversion from ‘Foam::tmp<Foam::GeometricField<Foam::Tensor<doubl e>, Foam::fvPatchField, Foam::volMesh> >’ to non-scalar type ‘Foam::surfaceScalarField’ requested
DaChris is offline   Reply With Quote

 


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
Problems bout CFD model of biomass gasification, Downdraft gasifier wanglong FLUENT 2 November 25, 2009 23:27
help for different between les model (subgrid-scale model) liuyuxuan FLUENT 1 October 2, 2009 15:25
Grid resolution for full-scale and down scaled model gravis Main CFD Forum 0 October 2, 2009 10:27
references about the fan/radiator model Mihai ARGHIR FLUENT 0 December 17, 2000 06:40
Advanced Turbulence Modeling in Fluent, Realizable k-epsilon Model Jonas Larsson FLUENT 5 March 13, 2000 03:27


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