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

Dimensioned Scalar Help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 8, 2014, 14:22
Default Dimensioned Scalar Help
  #1
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 4
physics1 is on a distinguished road
I am solving a transport equation ddt(n)+div(n,U)=0 for a ciruclar density area. As it transport the density begins to break up. We have fixed this by inputing a diffusion coefficient into the equation making it ddt(n)+div(n,u)-k*laplacian(n)=0, where k is defined as a dimensioned scalar. The issue is that at k=10,000 the diffusion works and the density does not break up but if i increase it to k=100,000 the density structures again. Ive compared it to the case where k=0 and they look identical. Is there a maximum value for a dimensioned scalar that i am hitting when i increase k from 10,000 to 100,000? If so how can i make that value larger?
physics1 is offline   Reply With Quote

Old   January 9, 2014, 03:23
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
ddt(n)+div(n,U) is not the way to implement a scalar transport equation in OpenFOAM. You would need ddt(n)+(phi,n). Have a look at the scalarTransportFoam solver.
Bernhard is offline   Reply With Quote

Old   January 9, 2014, 12:34
Default
  #3
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 4
physics1 is on a distinguished road
The transport equation is working correctly (i just mistyped it) i just need help with understanding what a dimensioned scalar is. It seems like im maxing out the value possible for a dimensioned scalar since it works for 10000 but not 100000.
physics1 is offline   Reply With Quote

Reply

Tags
dimensionedscalar

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32
FATAL ERROR:Maximum number of iterations exceeded zqlhzx OpenFOAM Running, Solving & CFD 3 December 29, 2013 08:07
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27


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