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

Source Term in Canyon Simulations

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 27, 2011, 06:28
Default Source Term in Canyon Simulations
  #1
New Member
 
Abhinav Sharma
Join Date: Sep 2010
Posts: 28
Rep Power: 8
asharma is on a distinguished road
Hello,

I'm trying to replicate wind tunnel experiments done for pollutant dispersion inside isolated street canyon. Most of the work is based on the set up published by Meroney et al (1996). I'm having trouble (physics) incorporating the source for the scaler pollutant inside my domain. I've modified pisoFoam to incorporate scaler transport as

Code:
 fvm::ddt(T)
	  + fvm::div(phi, T)
	  - fvm::laplacian(turbulence->nut()+DT, T)
	  ==
          source
I've also incorporated nut() value to account for turbulent diffusion. Presently i'm using funkysetfields ( part of swak4foam) to specify source as a constant value in cells where the pollutant is introduced and thus is fixed throughout the run. However my prof tells me this is wrong, as it doesn't fit the physics of the problem. Rather i should force the value of my scaler T to be constant at those points rather than specify source. Is this correct? If so how do i go about this?....

Regards,
Abhinav
asharma is offline   Reply With Quote

Old   May 28, 2011, 02:27
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,910
Rep Power: 27
alberto will become famous soon enoughalberto will become famous soon enough
You can use setValues to do what you ask for. Please, search on the forum to see how to use it.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats.
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 13, 2015, 03:51
Default
  #3
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 40
Rep Power: 3
wayne14 is on a distinguished road
Quote:
Originally Posted by asharma View Post
Hello,

I'm trying to replicate wind tunnel experiments done for pollutant dispersion inside isolated street canyon. Most of the work is based on the set up published by Meroney et al (1996). I'm having trouble (physics) incorporating the source for the scaler pollutant inside my domain. I've modified pisoFoam to incorporate scaler transport as

Code:
 fvm::ddt(T)
	  + fvm::div(phi, T)
	  - fvm::laplacian(turbulence->nut()+DT, T)
	  ==
          source
I've also incorporated nut() value to account for turbulent diffusion. Presently i'm using funkysetfields ( part of swak4foam) to specify source as a constant value in cells where the pollutant is introduced and thus is fixed throughout the run. However my prof tells me this is wrong, as it doesn't fit the physics of the problem. Rather i should force the value of my scaler T to be constant at those points rather than specify source. Is this correct? If so how do i go about this?....

Regards,
Abhinav
Hi, I am doing something similar. Could you explain why using funkysetfields doesn't fit the physics?

Thank you!
wayne14 is offline   Reply With Quote

Reply

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
Read txt file and import values to source term. Constantine Fluent UDF and Scheme Programming 40 July 21, 2016 17:20
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 5 June 21, 2013 05:39
How to write source term into scalar Fiel JimKnopf OpenFOAM Programming & Development 0 March 23, 2011 06:59
Is it possible to use divergence in the source term of an scalar transport equation? jannnesss CFX 0 January 8, 2010 20:53
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 00:27.