CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Boundary-static temperature (https://www.cfd-online.com/Forums/cfx/207807-boundary-static-temperature.html)

STC Amine October 3, 2018 04:32

Boundary-static temperature
 
Hello :),
How to introduce the inlet water temperatures as tabular form in a static temperature ?
Cordially.

Gert-Jan October 3, 2018 07:12

What kind of table do you want to make? Do you want to describe the temperature as a function of coordinates?
In other words: can you explain what problem you are working on?

urosgrivc October 4, 2018 02:41

this can be done in multiple ways;

[1] you can make an expression which depends on location

[2] You can import data via user function as a table and than use an expression to set up your boundary condition

[3] You can import data directly to your CFX via ->Tools->initialize profile data
you are then able to interpolate or use all this data in expressions also (very powerful tool)

[4] there are definitely some other ways also...

So which one you use depends on what you want to achieve and what type of data you have.

STC Amine October 9, 2018 04:20

Quote:

Originally Posted by urosgrivc (Post 708792)
this can be done in multiple ways;

[1] you can make an expression which depends on location

[2] You can import data via user function as a table and than use an expression to set up your boundary condition

[3] You can import data directly to your CFX via ->Tools->initialize profile data
you are then able to interpolate or use all this data in expressions also (very powerful tool)

[4] there are definitely some other ways also...

So which one you use depends on what you want to achieve and what type of data you have.

Thank you for your efficient and prompt attentions, what i want to do is insert the inlet water temperature as tabular expression in the heat transfer boundary.
Time (Hours) Te(°C)
08:10 10,4
08:20 11
08:30 11,1
08:40 16,1
08:50 15,4
09:00 13,9
09:10 14,7
09:20 13,5
09:30 13,6
09:40 13,9
09:50 13,9
10:00 13,8
10:10 13,4
10:20 14,1
10:30 14,6

urosgrivc October 9, 2018 04:54

I think that option [2] from before is best for this:

Type this into google (user function cfx):
...
You first need to make a tab delimited text file like this;
numbers must be vith . (dot) (not ,coma)

0 10.4
60 11
120 11.1
180 16.1
240 15.4
320 13.9
380 14.7
... ...


Now you make a new user function called "historyT"
the first column will be [s] in this case, but can be whatever you like
the other one [C]

you right-click on the blank space (coordinate-value table will be blank at first) in the user function setup and import the text file.
the table will be filled with values now, this part is done,

Now you make a new expression named "Temperature_t":
Temperature_t = historyT(t)

to the expression the (t) term is aded vhich stands for time dependant.
now you insert this expresion into setings for inlet temperature
and voila temperature vill change acording to time
it will be linearly interpolated between values.

STC Amine October 9, 2018 05:28

Thank you for your efficient and prompt attentions, what i want to do is insert the inlet water temperature as tabular expression in the heat transfer boundary.
Time (Hours) Te(°C)
08:10 10,4
08:20 11
08:30 11,1
08:40 16,1
08:50 15,4
09:00 13,9
09:10 14,7
09:20 13,5
09:30 13,6
09:40 13,9
09:50 13,9
10:00 13,8
10:10 13,4
10:20 14,1
10:30 14,6

STC Amine October 9, 2018 05:35

Thank you a lot for your valued assistance.

STC Amine October 9, 2018 06:16

Quote:

Originally Posted by urosgrivc (Post 709398)
I think that option [2] from before is best for this:

Type this into google (user function cfx):
...
You first need to make a tab delimited text file like this;
numbers must be vith . (dot) (not ,coma)

0 10.4
60 11
120 11.1
180 16.1
240 15.4
320 13.9
380 14.7
... ...


Now you make a new user function called "historyT"
the first column will be [s] in this case, but can be whatever you like
the other one [C]

you right-click on the blank space (coordinate-value table will be blank at first) in the user function setup and import the text file.
the table will be filled with values now, this part is done,

Now you make a new expression named "Temperature_t":
Temperature_t = historyT(t)

to the expression the (t) term is aded vhich stands for time dependant.
now you insert this expresion into setings for inlet temperature
and voila temperature vill change acording to time
it will be linearly interpolated between values.

Could you show me a demonstration!

urosgrivc October 9, 2018 06:33

The first part to create user defined function...

http://cfd2012.com/cfx-user-functions.html

the second part is just an expresion

google it you will learn much more


All times are GMT -4. The time now is 04:28.