|
[Sponsors] |
Streamline Coloring Question - How to show integration along a path? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 20, 2015, 17:33 |
Streamline Coloring Question - How to show integration along a path?
|
#1 |
New Member
Frank
Join Date: Oct 2013
Posts: 26
Rep Power: 13 |
I want to color streamlines in CFD Post with cumulative exposure to a scalar field. For example, let's say I want to design a UV water treatment device by flowing water with parasites through a straight pipe with a turbulence generator. Let's also say that the UV light is represented in the simulation by a scalar field and that the goal of the simulation is to determine the effectiveness of different turbulence generators in exposing the parasites to the UV field. Finally, let's say that the parasites are very small and follow the flow streamlines perfectly so that the working fluid is water and no particle tracking is involved.
What I want out of CFD Post is to colour streamlines with cumulative exposure to the scalar field and I have yet to figure out how to get it to do this. I want to see the exposure along different paths visually. My problem is different from the example I gave but much harder to explain and an answer to the above will work just as well for what I have actually done. I am able to integrate along the streamlines and get the answer I am looking for but showing cumulative exposure along streamlines would be great for the paper I am writing. Any help is greatly appreciated. |
|
March 21, 2015, 04:49 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
I would make a particle user variable for UV exposure and make it integrate up along its particle track. I think you will have to rerun the solver to do this.
|
|
March 23, 2015, 13:44 |
|
#3 |
New Member
Frank
Join Date: Oct 2013
Posts: 26
Rep Power: 13 |
I did try to do this with a transport equation source where the scalar field was the source and I specified diffusion to be zero. I guess I am misunderstanding the meaning of the solution to the material derivative as the solution I get is not the accumulation of exposure but seems to show the relative exposure between 2 points on a path. I figured that I would get the exposure along a path as the material derivative is the rate of change along a path. I am meeting with my Prof's today so I can clear up my understanding of this.
Does defining a user variable as a particle user source require the use of a Fortran routine? Thanks for the reply. |
|
March 23, 2015, 17:37 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
On closer inspection I suspect you will need a user fortran routine for this as you suggest.
You can do it using a scalar field transport equation as you have done, but if there is significant slip between the particles and fluid this will not work. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about explicite and implicite time integration theory | Anna Tian | Main CFD Forum | 1 | August 17, 2012 17:27 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
how i can post picture here to show my question? | prayskyer | CFX | 2 | October 8, 2006 07:47 |
A simple question on integration. | prasat | Main CFD Forum | 4 | July 4, 2003 22:19 |