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

Solve div(c1*phi)?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2012, 11:37
Default Solve div(c1*phi)?
  #1
Member
 
Jeong Kim
Join Date: Feb 2010
Posts: 42
Rep Power: 16
enoch is on a distinguished road
I wanted to solve the following equation for T in OF. T is a scalar quantity.

div(c1*grad(T)) + div(c2*T) = div(c3)

This equation is expressed as the OF language:

fvm::laplacian(c1, T) + fvm::div(c2*T) == fvc::div(c3)

There is an compilation error on div(c2*T). Does OpenFOAM cover only two type of divergence terms: div(phi, T) and div(T)?
How can I deal with div(coeff*T)???

Thanks in advance for your comments.
enoch is offline   Reply With Quote

Old   March 8, 2012, 04:07
Post
  #2
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15
lichmaster is on a distinguished road
Hi!

First of all let's make sure I understand your problem: you want to solve a transport equation for a scalar field T with a diffusive term and a source term, right?

If so, c1 must be a scalar, but c2 and c3 must be vectors, otherwise you are trying to calculate the divergence of a scalar, which doesn't exisit.

Let's assume c2 is the vector transporting T, then this is a convection term that, if I'm not wrong, can be modeled in OpenFOAM with fvm::div(c2,T).
lichmaster 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
Solve Flow or VOF simultaneously ? Ramsey FLUENT 1 February 16, 2011 13:16
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 06:58
Solve for two or more "Temperatures" Rui CFX 12 September 9, 2008 21:58
How solve UDS explicitely? Hesam FLUENT 0 July 1, 2007 09:03
How to solve another continuum and momentum eqn? west_wing FLUENT 0 August 25, 2003 10:00


All times are GMT -4. The time now is 14:57.