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

simulating aersols in urban canyon

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2017, 05:29
Default simulating aersols in urban canyon
  #1
Member
 
Justin Maris L. Natividad
Join Date: Mar 2016
Posts: 38
Rep Power: 10
Juzzvy is on a distinguished road
Good day. I am currently using openFoam in my project in simulation of air pollution in urban canyon. I added a scalar transport equation in my simplefoam solver. I also used toposet in defining my point source. Since it is a trial run, i did it in 100 iterations. After the run, the results weren't the one I am looking for. How can I fix it in such a way that the point source emits pollutants? Thank you
Attached Images
File Type: png scalartransport.png (41.6 KB, 82 views)
Juzzvy is offline   Reply With Quote

Old   November 28, 2017, 20:21
Default Use rhoReactingBuoyantFoam solver
  #2
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
1. Here is a reference for Vapor CO2 dispersion. Do a google search on openFoam atmosphere dispersion will also give you some more examples and papers, mostly to do with dispersion of hazardous materials.

2. Use rhoReactingBuoyantFoam solver with reactions and chemistry off for dispersion models similar to what you are describing. Use rhoPimpleFoam for an example to get started with BC also reference reactingFoam for BCs.

3. You can use atmBoundaryLayer like the turbineSiting tutorial in the simpleFoam tutorial
directory. Make sure you have a good quality mesh.

4. You can use a patch for emitting the pollutant at the desired rate.
kcjarvis56 is offline   Reply With Quote

Old   November 29, 2017, 00:38
Default
  #3
Member
 
Justin Maris L. Natividad
Join Date: Mar 2016
Posts: 38
Rep Power: 10
Juzzvy is on a distinguished road
Hi, I am currently reading the paper you have showed me. as for the other suggestions, I notuced that rhoPimpleFoam is for compressible flows. Can it work on my case? and also on the fourth suggestion, I tried to use toposet as a point source. I'm wondering whether there is a toposet setting for 2d and 3d.
Juzzvy is offline   Reply With Quote

Old   December 4, 2017, 23:47
Default
  #4
Member
 
Justin Maris L. Natividad
Join Date: Mar 2016
Posts: 38
Rep Power: 10
Juzzvy is on a distinguished road
Hi again, I've already done my run in an urban canyon setting using scalar transport function, and the results is promising. However, when I tried to run it on a different mesh, I always have an error of floating point, the error says:

TS
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::fv::SemiImplicitSource<double>::addSup(Foam: :fvMatrix<double>&, long) at ??:?
#4 Foam::tmp<Foam::fvMatrix<double> > Foam::fv:ptionList:perator()<double>(Foam::Geo metricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::word const&) at ??:?
#5 ? at ??:?
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 ? at ??:?
Floating point exception (core dumped)

does this error came from the mesh? since this same code already worked on my initial run on a different mesh.Thank you again
Juzzvy is offline   Reply With Quote

Old   December 5, 2017, 18:27
Default
  #5
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
Did you check you mesh with:
Code:
checkMesh -allGeometry -allTopology
That will identify errors to help you troubleshoot the mesh, if the mesh is the problem.

Looking at the error message it looks like it may be something to do with the fvOptions file. Check you BCs also to make sure they are correct. Since it worked with your other mesh, I would guess your solver is ok.

Good luck,

Kirk
kcjarvis56 is offline   Reply With Quote

Old   December 13, 2017, 05:29
Default
  #6
Member
 
Justin Maris L. Natividad
Join Date: Mar 2016
Posts: 38
Rep Power: 10
Juzzvy is on a distinguished road
Hi, I already run the simulation, and it looks fine. I used the function in fvOptions so that I can set the tracer at z=0. Now I wonder how to simulate the pollution per 5 timesteps? I just saw the functions timeStart and Duration. Is there any use of it? And what is the function of teh injectionRateSuSp, most especially the values to be needed ( the (2,0) in teh script)? Thank you

scalarTracer //name
{
type scalarSemiImplicitSource;
active true;
timeStart 1;
duration 50;
scalarSemiImplicitSourceCoeffs
{
selectionMode points;
points
(
(-129 57 0)
(-132 0 0)
);
volumeMode absolute; // absolute <quantity>; specific <quantity>/m^3
injectionRateSuSp
{
TS (2 0); //kg/s
}
}
}
Juzzvy is offline   Reply With Quote

Reply


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
simulating aersols in urban canyon Juzzvy OpenFOAM Running, Solving & CFD 2 November 22, 2017 04:14
simulating pollutant in a urban tunnel sahar_hp Fluent Multiphase 2 June 27, 2013 17:48
3D street canyon Mahender Rao K Main CFD Forum 4 January 31, 2011 05:44
pollution disperion urban canyon done_87 Main CFD Forum 1 January 1, 2010 15:01
Street Canyon Aykut FLUENT 5 December 30, 2009 19:05


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