CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to write read/write piecewise linear variation of properties in fluent (https://www.cfd-online.com/Forums/fluent/96873-how-write-read-write-piecewise-linear-variation-properties-fluent.html)

foamcfd February 3, 2012 10:00

How to write read/write piecewise linear variation of properties in fluent
 
I am running several cases which involves piecewise linear variation of 3 properties and functions. I wouldn't have problem if I have to enter for 4-5 pints. But I need to enter for around 15 points which is really painfull. So I was wondering if there is any way in fluent wherein I can read the file and it would update the linear variation of properties. So I don't need to do it manually.

Thanks

xrs333 February 5, 2012 11:02

Use text command, here is a demo:

/define/materials/change-create aluminum steel ;;
yes constant 8030 ;; Density
yes piecewise-linear 8 300 505 900 585 1500 450 1600 690 1620 750 1621 3e4 1622 6e4 1623 9e4 ;; Cp
yes piecewise-linear 8 300 15 900 20 1500 30 1600 31 1620 32 1621 33 1622 34 1623 35 ;; Thermal_Conductivity
no ;; Overwrite?


Edit the command in a text-editor, copy these lines and paste them in the console of FLUENT, or run as a journal.

foamcfd February 7, 2012 08:22

Thanks. It works

subbu February 23, 2012 22:13

How to set a material(eg. aluminum or steel) to my gambit model in fluent?
 
I m from electrical background and i m new to this.. I hav created my wind turbine model in gambit and now i need two things to be done in it

1. to set aluminum as the material for one portion and remaining portion as steel.
2. want to simulate the model only for half rotation (180 degrees and not 360 degrees) in fluent

Anybody please help me out in this..

Thanks & Regards,
Subbu:)

the_sixth_hokage March 31, 2020 02:08

Journal file
 
Quote:

Originally Posted by foamcfd (Post 343114)
Thanks. It works


Hi...

I made a journal file to input conductivity and viscosity of fluid containing piecewise linear with 350 points...will this work...I read the files but when I tried to view it showed some warnings in console...how to confirm that my data is entered properly..

vinerm March 31, 2020 03:52

Piecewise Linear
 
Number of pieces is limited to 30 for piecewise linear properties. You have to use UDF for this.

atelcikti1 April 2, 2020 06:12

Hi,

Can you write also in ".scm" file format as in fluent database? I can write polynomial piecewise and had no problem however when I wrote piecewise linear material I got an error.

Thank you.



Quote:

Originally Posted by xrs333 (Post 342812)
Use text command, here is a demo:

/define/materials/change-create aluminum steel ;;
yes constant 8030 ;; Density
yes piecewise-linear 8 300 505 900 585 1500 450 1600 690 1620 750 1621 3e4 1622 6e4 1623 9e4 ;; Cp
yes piecewise-linear 8 300 15 900 20 1500 30 1600 31 1620 32 1621 33 1622 34 1623 35 ;; Thermal_Conductivity
no ;; Overwrite?


Edit the command in a text-editor, copy these lines and paste them in the console of FLUENT, or run as a journal.


vinerm April 6, 2020 05:22

Material Property as Piecewise Linear
 
Scheme is just a language used by Fluent's cortex, i.e., its graphical interface. It does not mean that you can use it for something that Fluent does not allow. If the limit is 50 then it is 50. You cannot use scheme to include more than 50 pieces.


All times are GMT -4. The time now is 19:50.