|
[Sponsors] |
Functions to import non grid associated experimental data |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 29, 2010, 13:04 |
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 |
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? |
|
June 30, 2010, 06:11 |
|
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
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.
__________________
Laurence R. McGlashan :: Website |
|
|
|
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 04: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 12:05 |
Grid refinement with wall functions | Mark Render | Main CFD Forum | 8 | May 2, 2000 08:09 |