CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   User material database (http://www.cfd-online.com/Forums/fluent/50790-user-material-database.html)

ashish March 6, 2009 18:21

User material database
 
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

Renato March 8, 2009 15:01

Re: User material database
 
I've got the same problem: Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: #f


ashish March 9, 2009 12:25

Re: User material database
 
I'll surely post the solution if and when I get it.

cheesey February 3, 2010 15:35

same error
 
i have this error too. may i know what does it mean? thanks.

bgu February 5, 2010 08:15

Don't bother
 
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.

mystic_cfd February 13, 2010 09:18

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

cheesey February 22, 2010 14:00

database error shown
 
(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!

TDi March 29, 2010 16:25

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))
  )
)


Jui C June 6, 2011 02:07

Hello
 
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.

wwa September 27, 2011 04:37

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

robboflea July 2, 2012 08:13

Material properties definition
 
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

nasser January 19, 2013 14:52

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.


All times are GMT -4. The time now is 10:54.