CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

New Material

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 16, 2010, 21:16
Default New Material
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
How can I define a new material using a Scheme macro (I've seen Fluent can import a database of materials as a *.scm file, but I didn't see any example).

Or should I use a UDF for this ?

Thanks,

Do
DoHander is offline   Reply With Quote

Old   January 18, 2010, 00:05
Default
  #2
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 8
fox000002 is on a distinguished road
There is an example file below.

Save the code to a .scm file.

Then u can edit the prop directly or in the GUI.

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;             FLUENT USER DEFINED MATERIAL DATABASE
;;;                                                              ;;;
;;; (name type[fluid/solid] (chemical-formula . formula)
;;;             (prop1 (method1a . data1a) (method1b . data1b))
;;;            (prop2 (method2a . data2a) (method2b . data2b)))
;;;                                                              ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(
    (xxxx solid
        (chemical-formula . xxxx)
        (density (constant . 7900))
        (specific-heat (constant . 502))
        (thermal-conductivity  (constant . 20))
    )
)

fox000002 is offline   Reply With Quote

Old   January 18, 2010, 14:21
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
Thanks a lot,

Do
DoHander is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulation of a single bubble with a VOF-method Suzzn CFX 18 October 2, 2009 04:18
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Wall Material Maple FLUENT 4 March 13, 2009 06:39
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02
material mass imbalance Im FLUENT 3 September 5, 2001 22:47


All times are GMT -4. The time now is 17:37.