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

User material database

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 6, 2009, 18:21
Default User material database
  #1
ashish
Guest
 
Posts: n/a
Hi, I'm trying to add new material to the existing fluent database. I'm following the same format as that given in the USER's guide (page 8-10). However, I get the following error. Error: GENERAL-CAR-CDR: invalid argument [1]: improper list Error object : air, I get this error even if I copy the exact format given on this page. Can you please help me out? Thanks, Ashish
  Reply With Quote

Old   March 8, 2009, 15:01
Default Re: User material database
  #2
Renato
Guest
 
Posts: n/a
I've got the same problem: Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: #f

  Reply With Quote

Old   March 9, 2009, 12:25
Default Re: User material database
  #3
ashish
Guest
 
Posts: n/a
I'll surely post the solution if and when I get it.
  Reply With Quote

Old   February 3, 2010, 15:35
Default same error
  #4
New Member
 
cheesey
Join Date: Jan 2010
Posts: 2
Rep Power: 0
cheesey is on a distinguished road
i have this error too. may i know what does it mean? thanks.
cheesey is offline   Reply With Quote

Old   February 5, 2010, 08:15
Angry Don't bother
  #5
bgu
New Member
 
Join Date: Mar 2009
Posts: 9
Rep Power: 8
bgu is on a distinguished road
One would expect that after 20 30(?) years Fluent or Ansys will provide a tool for editing the database. I tried it several times and usually failed. I do not bother with the database anymore, instead, I edit an existing material in Fluent-Materials panel and Change/Create it.
bgu is offline   Reply With Quote

Old   February 13, 2010, 09:18
Default
  #6
New Member
 
HP Kritzinger
Join Date: May 2009
Location: South Africa
Posts: 25
Rep Power: 8
mystic_cfd is on a distinguished road
Hi there

We regularly make use of custom material files. Remember that it is a file written in the Scheme language and requires attention to formatting.

From your error it would appear that the Scheme interpreter has a problem with one of your lists. This can be due to unmatched parentheses, but often occurs when the text editor you use inserts additional control characters into the file (or by copying a file from Windows to run on Linux).

If you still have problems, post your file and someone will probably fix it for you...

regards
mystic_cfd is offline   Reply With Quote

Old   February 22, 2010, 14:00
Default database error shown
  #7
New Member
 
cheesey
Join Date: Jan 2010
Posts: 2
Rep Power: 0
cheesey is on a distinguished road
(fluid
(chemical-formula . formula)
(density (constant . 1025))
(viscosity (constant . 1068.36))
temperature (constant . 293)))

above is my input..but came out this:

Error: GENERAL-CAR-CDR: invalid argument [1]: improper list
Error Object: fluid

is my database correct?

thanks!
cheesey is offline   Reply With Quote

Old   March 29, 2010, 16:25
Default
  #8
TDi
Member
 
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 7
TDi is on a distinguished road
I was having the same problem and found the solution in an older thread on this forum: you need another set of enclosing parentheses () around the whole thing. Thus, there are sets of parentheses for each of the whole file, each material, each property, and if needed, each numeric value.
The sample should correctly read as follows:

Code:
(
(air
  fluid
  (chemical-formula . #f)
  (density (constant . 1.225)
  (premixed-combustion 1.225 300))
  (specific-heat (constant . 1006.43))
  (thermal-conductivity (constant . 0.0242))
  (viscosity (constant . 1.7894e-05)
  (sutherland 1.7894e-05 273.11 110.56)
  (power-law 1.7894e-05 273.11 0.666))
  (molecular-weight (constant . 28.966))
  )

 (aluminum
  solid
  (chemical-formula . al)
  (density (constant . 2719))
  (specific-heat (constant . 871))
  (thermal-conductivity (constant . 202.4))
  (formation-entropy (constant . 164448.08))
  )
)
TDi is offline   Reply With Quote

Old   June 6, 2011, 02:07
Default Hello
  #9
New Member
 
jui
Join Date: Jun 2011
Posts: 1
Rep Power: 0
Jui C is on a distinguished road
I had similar problem with interpreted udf -
Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object []

I was using a long name for udf with 3 underscores earlier, then changed it to a smaller one and it worked.
Jui C is offline   Reply With Quote

Old   September 27, 2011, 04:37
Default
  #10
wwa
New Member
 
wwa's Avatar
 
Join Date: May 2009
Location: France
Posts: 12
Rep Power: 8
wwa is on a distinguished road
Hello,
I have the same problem and none of the solutions above work for me. I enclosed it in additional parentheses, converted it to unix format, but still encountered the same error

Error: GENERAL-CAR-CDR: invalid argument [1]: improper list
Error Object: sodium-carbonate

Can anyone have a look at that? I'm using Fluent 6.3 on Windows.

here is the code (don't mind the incorrect constants, it's just a test):

Code:
 
 ( 
  (sodium-carbonate
  fluid
  (chemical-formula . Na2CO3<s>)
  (density (constant . 2000))
  (specific-heat (constant . 1220)(polynomial piecewise-polynomial (273 1000 -464.17822 4.9711663 -0.0038992118 1.4829381e-06 -2.8855555e-10) (1000 5000 1031.5207 1.150554 -0.00046290062 8.9357071e-08 -6.372102e-12)))
  (molecular-weight (constant . 104))
  (formation-enthalpy (constant . -101.268))
  (reference-temperature (constant . 298))
  (formation-entropy (constant .  0.5731747e+04))
  (species-phase (constant . 1))
  )
  
  (sodium-sulfite
  fluid
  (chemical-formula . Na2SO3<s>)
  (density (constant . 2000))
  (specific-heat (constant . 1220)(polynomial piecewise-polynomial (273 1000 -464.17822 4.9711663 -0.0038992118 1.4829381e-06 -2.8855555e-10) (1000 5000 1031.5207 1.150554 -0.00046290062 8.9357071e-08 -6.372102e-12)))
  (molecular-weight (constant . 124))
  (formation-enthalpy (constant . -101.268))
  (reference-temperature (constant . 298))
  (formation-entropy (constant .  0.5731747e+04))
  (species-phase (constant . 1))
  )
 )
Thanks for replies,

Peter
wwa is offline   Reply With Quote

Old   July 2, 2012, 08:13
Default Material properties definition
  #11
Member
 
Join Date: Nov 2011
Posts: 81
Rep Power: 5
robboflea is on a distinguished road
Hi all,

I came across this problem when trying to define a new material using the data insertion mask from fluent gui.
I solved it by specifying the database name and the materials names in lower-case letters.

Hope this helps!

Rob
robboflea is offline   Reply With Quote

Old   January 19, 2013, 14:52
Default
  #12
New Member
 
Nasser
Join Date: Dec 2012
Posts: 21
Rep Power: 4
nasser is on a distinguished road
hi friend
its the best way :
The materials database is located in the following file:

path /Fluent.Inc/fluent6. /cortex/lib/propdb.scm
where path is the directory in which you have installed FLUENT and the variable corresponds to your release version, e.g., 1 for fluent6.1.

If you wish to enhance the materials database to include additional materials that you use frequently, you can follow the procedure below:

1.
Copy the file propdb.scm from the directory listed above to your working directory.
2.
Using a text editor, add the desired material(s) following the format for the other materials. You may want to copy an existing material that is similar to the one you want to add, and then change its name and properties. The entries for air and aluminum are shown below as examples:
(air
fluid
(chemical-formula . #f)
(density (constant . 1.225)
(premixed-combustion 1.225 300))
(specific-heat (constant . 1006.43))
(thermal-conductivity (constant . 0.0242))
(viscosity (constant . 1.7894e-05)
(sutherland 1.7894e-05 273.11 110.56)
(power-law 1.7894e-05 273.11 0.666))
(molecular-weight (constant . 28.966))
)

(aluminum
(solid)
(chemical-formula . al)
(density (constant . 2719))
(specific-heat (constant . 871))
(thermal-conductivity (constant . 202.4))
(formation-entropy (constant . 164448.08))
)
When you next load the materials database in a FLUENT session started in the working directory, FLUENT will load your modified propdb.scm, rather than the original database, and your custom materials will be available in the Database Materials panel.

If you want to make the modified database available to others at your site, you can put your customized propdb.scm file in the cortex/lib directory, replacing the default database. Before doing so, you should save the original propdb.scm file provided by Fluent Inc. to a different name (e.g., propdb.scm.orig) in case you need it at a later time.
nasser 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
User-Defined Material Database Domenic FLUENT 1 June 1, 2015 09:34
Reference for Fluent's Material Database Chendhil FLUENT 1 March 22, 2015 06:46
How to use User defined database to add material sangeeta FLUENT 1 February 25, 2009 14:02
How to change the material database for Fluent sxf FLUENT 1 May 3, 2005 16:37
Creating new material properties in database rajeev FLUENT 1 July 13, 2001 03:06


All times are GMT -4. The time now is 09:49.