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

Writing own solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2006, 13:02
Default Hi! I want to add the Darcy-
  #1
Member
 
Nico Petry
Join Date: Mar 2009
Posts: 36
Rep Power: 17
nico is on a distinguished road
Hi!
I want to add the Darcy-term in the simpleFoam solver. I tried this:

tmp<fvvectormatrix> UEqn
(
fvm::div(phi, U)
+ turbulence->divR(U)+fvm::SuSp(nu*G,U)
);

UEqn().relax();

solve(UEqn() == -fvc::grad(p));

Everything works fine until i changed my Field G from a volScalarField in a volTensorField, because i have directed permeabilities. I tried nu*(G & U), but it did not give the right solution.

Hope somebody can help me.
Thanks

Nico
nico is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Writing solver for U p and T fields kar OpenFOAM Running, Solving & CFD 0 January 21, 2008 14:36
New to writing UDF Sandilya FLUENT 0 May 31, 2007 13:03
Advice needed in writing my own solver... E. Turner Main CFD Forum 1 September 2, 2006 07:25
Solver crashes only while writing a bak file hagupta CFX 1 April 11, 2006 19:10
writing a 3d NS solver in the primitive variables! lostsoul Main CFD Forum 4 October 20, 2000 03:52


All times are GMT -4. The time now is 16:50.