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

Dimensioned Scalar Help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2014, 13:22
Default Dimensioned Scalar Help
  #1
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 13
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, 02:23
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
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, 11:34
Default
  #3
New Member
 
Join Date: Jul 2012
Posts: 13
Rep Power: 13
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


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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
FATAL ERROR:Maximum number of iterations exceeded zqlhzx OpenFOAM Running, Solving & CFD 4 July 13, 2016 15:53
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 23, 2014 23:48
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27


All times are GMT -4. The time now is 07:21.