|
[Sponsors] |
how to impose experimental data as boundary condition in Fluent 6.3.26 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2015, 20:54 |
how to impose experimental data as boundary condition in Fluent 6.3.26
|
#1 |
New Member
cherche-du-paix
Join Date: Nov 2013
Posts: 12
Rep Power: 13 |
hi
how to impose experimental data as boundary condition in Fluent 6.3.26 I have this data for temperature profile how can I introduce it as user define for boundary condition time(h) 7:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 Temperature 37,59 45,88 53,89 60,8 65,78 67,85 69,3 67,03 64,96 59,73 52,25 44,37 37,77 |
|
March 4, 2015, 01:40 |
|
#2 |
New Member
Guang
Join Date: Feb 2015
Location: Stuttgart, Germany
Posts: 15
Rep Power: 11 |
you can use udf to set a boundary condition of temporal varied temperature
|
|
March 4, 2015, 03:50 |
|
#3 |
Senior Member
Join Date: Nov 2010
Posts: 103
Rep Power: 16 |
why don't you fit an expression on your experimental data and then having the equation, you can use DEFINE_PROFILE to create your own bc for the temperature.
|
|
March 4, 2015, 07:43 |
|
#4 |
Member
Join Date: Nov 2014
Posts: 31
Rep Power: 12 |
Hi duina,
As per my understanding, you want to change temperature boundary condition per hour but it is not clear to me which type of boundary condition it is (I mean mass_flow_inlet,pressure_outlet ?) I assume, you know the number of time steps per hour. Before starting iterations, define function as follows in console (You have to paste complete syntax in one go, not line by line) Code:
(define my_temperature (lambda (my_temp) (let () (begin (ti-menu-load-string (format #f "/define/boundary-conditions/pressure-outlet pressure_outlet_face_zone no ~a no ~a n y n n ~a n ~a n ~a n ~a y y y y n 0 n 0 n 0 n 0 n n n" 0 my_temp 0.1 0.1 0.1 0.1)) ) ) ) ) Code:
(my_temperature 45.88) Here in my case, i have considered a random definition of boundary condition. For you, the syntax in bracket (ti-menu-load-string .....) will change accordingly. |
|
March 4, 2015, 15:14 |
|
#5 |
New Member
cherche-du-paix
Join Date: Nov 2013
Posts: 12
Rep Power: 13 |
thank's maverick123 and Sun to replying me
i wante to run my simulation , for 0.1 s times steps and the temperature varied each hour in boundary condition i have this data experimental temperature to introduce it as user define it is like when t = 1 h to 2 h ( mean ) from 7:00 to 8:00 Temperature= 37°C t= 2 or 72000 sec (from 8:00 to 9:00 ) T=45,88 °C . . . . . . and my simulation steps time run for 0.1 s how i can create this user define to define the profile of temperature each hour thank's |
|
March 5, 2015, 01:40 |
|
#6 | |
Member
Join Date: Dec 2009
Location: China
Posts: 79
Rep Power: 17 |
Quote:
The code you posted doesnt look like a UDF one. Its likely the same format as sentences in a profile file. Could you tell me what it is exactly? How to write such a script and hook it inFLUENT? Thanks |
||
March 5, 2015, 05:39 |
|
#7 | |
Member
Join Date: Nov 2014
Posts: 31
Rep Power: 12 |
Quote:
The code i have written is not UDF, it is the scheme function. As per my assumption, there is not fix function/expression (which is convenient to code in UDF) for above mentioned temperature boundary condition. So I defined a function which will set require value to the BC after certain iterations. As per problem, if BC has to be changed after 1 hr, there should be certain number of iterations in between. In journal or while running manually I will update the BC by just passing required value to my defined function. Thanks |
||
March 6, 2015, 09:45 |
|
#8 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
You can also define it as a profile. The syntax for a profile file is pretty simple but I've never made a transient one. here's an example for a spatial profile.
((name point 2 1) (x 0.000000e+00 0.000000e+00) (y 1.735112e-05 5.206682e-05) (axial-velocity 2.427940e+01 2.426885e+01) Write your data to a text file in similar format and read it into fluent as a profile. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
How to transfer boundary condition from Openfoam to fluent | sachinlb | OpenFOAM Post-Processing | 1 | January 6, 2012 02:41 |
problem about periodic boundary condition in Fluent | winnawinna | FLUENT | 0 | December 29, 2010 00:32 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 12:32 |