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

How to write read/write piecewise linear variation of properties in fluent

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By xrs333
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2012, 10:00
Default How to write read/write piecewise linear variation of properties in fluent
  #1
New Member
 
Yogesh Patil
Join Date: Nov 2009
Posts: 20
Rep Power: 16
foamcfd is on a distinguished road
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
foamcfd is offline   Reply With Quote

Old   February 5, 2012, 11:02
Default
  #2
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16
xrs333 is on a distinguished road
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.
HHK and SSG_NJ like this.
xrs333 is offline   Reply With Quote

Old   February 7, 2012, 08:22
Default
  #3
New Member
 
Yogesh Patil
Join Date: Nov 2009
Posts: 20
Rep Power: 16
foamcfd is on a distinguished road
Thanks. It works
foamcfd is offline   Reply With Quote

Old   February 23, 2012, 22:13
Smile How to set a material(eg. aluminum or steel) to my gambit model in fluent?
  #4
New Member
 
subbu
Join Date: Feb 2012
Posts: 1
Rep Power: 0
subbu is on a distinguished road
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
subbu is offline   Reply With Quote

Old   March 31, 2020, 02:08
Default Journal file
  #5
New Member
 
Lee Jo
Join Date: Mar 2020
Posts: 29
Rep Power: 6
the_sixth_hokage is on a distinguished road
Quote:
Originally Posted by foamcfd View Post
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..
the_sixth_hokage is offline   Reply With Quote

Old   March 31, 2020, 03:52
Default Piecewise Linear
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Number of pieces is limited to 30 for piecewise linear properties. You have to use UDF for this.
the_sixth_hokage likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 2, 2020, 06:12
Default
  #7
Member
 
atelcikti1's Avatar
 
Join Date: Mar 2017
Posts: 61
Rep Power: 9
atelcikti1 is on a distinguished road
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 View Post
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.
atelcikti1 is offline   Reply With Quote

Old   April 6, 2020, 05:22
Default Material Property as Piecewise Linear
  #8
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm 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
How to write UDF programme inside FLUENT? coolyihao Fluent UDF and Scheme Programming 9 June 5, 2016 21:08
Fluent jobs through pbs ibnkureshi FLUENT 5 June 9, 2011 13:43
how to write a 3D linear temperature of UDF venus FLUENT 1 October 28, 2008 02:46
fluent -g does not write and print monitors Volker Pawlik FLUENT 7 December 7, 2005 06:19
Where can I write my C program "UDF" in Fluent Chimwemwe Banda FLUENT 2 December 8, 2004 09:07


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