CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Functions to import non grid associated experimental data

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 29, 2010, 12:04
Default Functions to import non grid associated experimental data
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 12
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
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 16
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, 15 views)
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote


Thread Tools
Display Modes

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 On
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 08: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 29, 2004 00: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 16:52.