CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Scalar equation and a table from a file

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

LinkBack Thread Tools Display Modes
Old   April 20, 2011, 09:01
Default Scalar equation and a table from a file
Member's Avatar
Join Date: Apr 2010
Posts: 48
Rep Power: 9 is on a distinguished road
Hello, I have to solve the following problem: I have a scalar transport equation of a variable Y with a source term called Y'.
Imagine that I have values of Y in a discrete way, included in the range [0:1] and Y' values different and dependent on the Y ones (for each Y I have a Y'). Let's pretend that I want to evaluate the values of Y' from a value of Y not included in the discrete table (for instance Y = 0.005) simply making a linear interpolation.

Y - Y'
0 - 10
0,1 - 12
0,2 - 56
0,3 - 78
0,4 - 98
0,5 - 99
0,6 - 56
0,7 - 21
0,8 - 12
0,9 - 11
1,0 - 5
the first question is: how to upload the table in the memory of the scalar equation I have? second: which tools are better to be used for linear interpolation? regards, alex 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Source Term on Scalar Transport Equation - crashing simulation OpenFOAM 19 February 8, 2011 08:38
Is it possible to use divergence in the source term of an scalar transport equation? jannnesss CFX 0 January 8, 2010 20:53
how solve a scalar equation with Fluent tomik FLUENT 0 January 5, 2006 07:38
transport equation for SGS scalar variance chinthakindi Main CFD Forum 0 April 27, 2004 09:26

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