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

Functions to import non grid associated experimental data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2010, 12:04
Default Functions to import non grid associated experimental data
  #1
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19
benk is on a distinguished road
I have some experimental data for a diffusion coefficient that depends on temperature and concentration. It's difficult to fit this data to polynomial functions and so what I want to do is import this data into my solver and then along with calculated concentration/temperatures, populate a volScalarField using the data along with an interpolation routine.

Has anybody done this and/or are there built-in functions in OpenFOAM to do this?
benk is offline   Reply With Quote

Old   June 30, 2010, 05:11
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Maybe someone can highlight how to use foam's interpolation routines, but I had to do something similar and just used the STL. I've attached a linear interpolator with a driver routine, let me know if there are problems. I guess for your case you'll have to just call the interpolator twice, once against temperature and then against concentration.
Attached Files
File Type: gz interpolator.tar.gz (2.8 KB, 16 views)
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan 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
Tecplot. add experimental data into a mesh Alejandro FLUENT 0 December 10, 2008 07:08
Experimental data on transition kepler Main CFD Forum 2 October 24, 2007 03:13
Looking for the experimental data COLOPOLO Main CFD Forum 2 January 28, 2004 23:38
Availability of experimental combustion data? Mario Main CFD Forum 3 September 23, 2003 11:05
Grid refinement with wall functions Mark Render Main CFD Forum 8 May 2, 2000 07:09


All times are GMT -4. The time now is 19:49.