|
[Sponsors] |
November 25, 2015, 18:29 |
Using results from experiment
|
#1 |
New Member
Hong
Join Date: Nov 2015
Posts: 1
Rep Power: 0 |
Hi,
Please I have results from experiment. The results are two .txt files (I got these results from MatLab. Actually these results are two matrices with A(i,j), B(i,j) both are 100*100 ). I want to use these results in Fluent so I need to use C language to connect them to Fluent. My question is how I can insert these results to below code original code is #include "udf.h" DEFINE_INIT(my_init_func, domain) { cell_t c; Thread *t; real xc[ND_ND]; /* loop over all cell threads in the domain */ thread_loop_c (t,domain) { /* loop over all cells */ begin_c_loop_all (c,t) { CX(c,t) = I want to insert result from matrix B(i,j) here CY(c,t) = I want to insert result from matrix A(i,j) here end_c_loop_all (c,t) } } } Thanks |
|
Tags |
use data from experiment |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
Oscillating Airfoil Poor Results at High k (reduced frequency) | dancfd | OpenFOAM Running, Solving & CFD | 3 | November 4, 2013 09:32 |
Creating a tool to interpolate results | Luis Batista | OpenFOAM Running, Solving & CFD | 2 | April 11, 2013 09:15 |
Transient Run - Output "Time" in partial results? | evcelica | CFX | 2 | May 16, 2012 22:36 |
wind tunnel results vs fluent | pixie | Main CFD Forum | 1 | August 20, 2009 09:02 |