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

Source within a porous domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2010, 04:25
Exclamation Source within a porous domain
  #1
New Member
 
Philipp
Join Date: Apr 2010
Posts: 27
Rep Power: 16
Hitch8 is on a distinguished road
Hi everyone!

I would like to define an energy source term within a porous domain by reading in a csv file (x,y,z, source term [W m^-3], similar to the definition of a boundary condition by reading in a boundary profile file.

Does anyone know if this is possible and how I can do that?

Many thanks!
Philipp
Hitch8 is offline   Reply With Quote

Old   June 29, 2010, 06:25
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Use a 3D CEL interpolation function. When you set it up in CFX-Pre it will probably be easier to use the text editor to enter the points directly from the csv file - but you will have to do a small amount of formatting, but it is not hard.
ghorrocks is offline   Reply With Quote

Old   July 1, 2010, 09:18
Exclamation
  #3
New Member
 
Philipp
Join Date: Apr 2010
Posts: 27
Rep Power: 16
Hitch8 is on a distinguished road
Hi Glen,
thank you again for your help!

I have still a small problem; I managed to create the User Function (H2 Source), I've imported the data points (coordinate, value) by reading in a csv. file. I have now a list of data points (about 3400, coordinates x,y,z and the corresponding value).
I tried to define an equation source [kg m^-3 s^-1] in a subdomain, but I don't know exactly what name I have to put in the field. Is it just the name of the user function (H2 Source) or is it something like H2 Source.Variable name(x,y,z)?

Regards,
Philipp
Hitch8 is offline   Reply With Quote

Old   July 1, 2010, 18:42
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you used a 3D interpolation function it is simply f(a,b,c), where a,b and c are the input variables - almost always x,y and z. So in your case it would be "H2 Source(x,y,z)".
ghorrocks is offline   Reply With Quote

Old   July 2, 2010, 03:01
Thumbs up
  #5
New Member
 
Philipp
Join Date: Apr 2010
Posts: 27
Rep Power: 16
Hitch8 is on a distinguished road
Thank you very much Glen, perfect!

Regards,
Philipp
Hitch8 is offline   Reply With Quote

Reply

Tags
csv, source


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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
heat transfer in porous domain Tiago CFX 3 October 19, 2008 01:20
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03


All times are GMT -4. The time now is 10:44.