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

Constant multiplied by a Laplacian

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2015, 05:09
Default Constant multiplied by a Laplacian
  #1
New Member
 
Anonymous
Join Date: May 2015
Location: USA
Posts: 2
Rep Power: 0
Storm123 is on a distinguished road
Hello Everyone,

I am trying to solve this equation using OpenFoam:

dP/dt=z/(∅*P*C ) ∇(P*k/(μ*z) ∇P) ....eq.1

However, it seems there no command to discritize a scalar multiplied by a laplacian.

So I decomposed the equation to the following (d(uv)=udv+vdu):
dP/dt=∇(k/(∅*μ*C) ∇P)-P*k/(μ*z) ∇(z/(∅*P*C))∇P.....eq2

I wrote the second equation as:

volScalarField A = K/PHI/MU/C;

fvSclaraMatrix pEqn
(
fvm::ddt(p)
- fvm::laplacian(A,p)
+(fvc::grad(p)&fvc::grad(zeta/(PHI*p*C)))*K/(MU*zeta)
==
fvOptions(p)
);


So my solver runs, and I can get a solution, however it is a wrong solution. More often than not, I need to have large relaxation numbers to even get a solution. I am new to OpenFoam, so I thought I might ask for help for a way to apply the initial equation 1 without the need to decompose it into equation 2 (It is the second term on the rhs of equation 2 that is causing trouble, so I am not sure about its discritization). Is there a way to multiply a scalar by a laplacian in equation number 1?

Thank you very much, and please bear with me if I made stupid remarks or comments that showed lack of understanding, as I am new.

Thanks.
Storm123 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
fluid flow but temperature raises from nowhere? mxcfd STAR-CCM+ 5 September 16, 2014 05:46
Some questions about Laplacian with nonorthogonal correction koderer OpenFOAM 3 December 12, 2012 17:30
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Really big problems when creating own materials da Jop FLUENT 0 June 28, 2007 11:15


All times are GMT -4. The time now is 18:40.