CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Streamline Coloring Question - How to show integration along a path?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2015, 16:33
Default Streamline Coloring Question - How to show integration along a path?
  #1
New Member
 
Frank
Join Date: Oct 2013
Posts: 26
Rep Power: 12
FrankS is on a distinguished road
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.
FrankS is offline   Reply With Quote

Old   March 21, 2015, 03:49
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   March 23, 2015, 12:44
Default
  #3
New Member
 
Frank
Join Date: Oct 2013
Posts: 26
Rep Power: 12
FrankS is on a distinguished road
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.
FrankS is offline   Reply With Quote

Old   March 23, 2015, 16:37
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks 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
Question about explicite and implicite time integration theory Anna Tian Main CFD Forum 1 August 17, 2012 16:27
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
how i can post picture here to show my question? prayskyer CFX 2 October 8, 2006 06:47
A simple question on integration. prasat Main CFD Forum 4 July 4, 2003 21:19


All times are GMT -4. The time now is 04:52.