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

How to solve this kind of continuity equation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2011, 15:31
Default How to solve this kind of continuity equation?
  #1
New Member
 
Join Date: Jul 2011
Posts: 2
Rep Power: 0
shddx1 is on a distinguished road
Hi, I am a beginner of OpenFOAM. I try to use it to solve an equation in the mathematical form of:

div [sinh(|grad(phi)|)*div(phi)/|grad(phi)|] = 0

where phi is a volScalarField, |grad(phi)| is the magnitude of grad(phi), and sinh is the hyperbolic sine. I wrote the following codes, but it does not work.

volVectorField GradPhi=fvc::grad(phi);
surfaceScalarField MagGradPhi=mesh.Sf()*fvc::snGrad(phi);
surfaceScalarField SinhMagGradPhi=sinh(MagGradPhi)/MagGradPhi;
solve
(
fvm::div(SinhMagGradPhi, GradPhi)
);

The error is: conversion from ‘Foam::tmp<Foam::GeometricField<Foam::Vector<doubl e>, Foam::fvsPatchField, Foam::surfaceMesh> >’ to non-scalar type ‘Foam::surfaceScalarField’ requested

I don’t understand this problem. Do you know how to solve above equation? Any opinion is welcome! Thanks!
shddx1 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Continuity Equation Fernando Herrera Main CFD Forum 3 July 18, 2008 13:41
How to solve equation ∂^2U/∂X^2 +∂^2U/∂Y^2 V.Gnanaraj Main CFD Forum 3 May 31, 2008 14:08
how to adjust continuity equation in vof??? Asghari FLUENT 0 October 11, 2006 04:43
Poisson equation vs continuity equation DJ Main CFD Forum 1 August 5, 2004 20:01


All times are GMT -4. The time now is 08:48.