|
[Sponsors] |
How to solve this kind of continuity equation? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 7, 2011, 16:31 |
How to solve this kind of continuity equation?
|
#1 |
New Member
Join Date: Jul 2011
Posts: 2
Rep Power: 0 |
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! |
|
|
|
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 06:21 |
Continuity Equation | Fernando Herrera | Main CFD Forum | 3 | July 18, 2008 14:41 |
How to solve equation ∂^2U/∂X^2 +∂^2U/∂Y^2 | V.Gnanaraj | Main CFD Forum | 3 | May 31, 2008 15:08 |
how to adjust continuity equation in vof??? | Asghari | FLUENT | 0 | October 11, 2006 05:43 |
Poisson equation vs continuity equation | DJ | Main CFD Forum | 1 | August 5, 2004 21:01 |