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

Scalar equation and a table from a file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2011, 10:01
Default Scalar equation and a table from a file
  #1
Member
 
alessio.nz's Avatar
 
Alex
Join Date: Apr 2010
Posts: 48
Rep Power: 16
alessio.nz 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
alessio.nz 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Source Term on Scalar Transport Equation - crashing simulation alessio.nz 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 10:26


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