Material Library

General discussion about Elmer
Post Reply
GastónGarcía
Posts: 21
Joined: 08 Dec 2010, 01:00

Material Library

Post by GastónGarcía »

Hi, I want to know if there's a way of creating a new material and save it in the library
Thanks
Gastón
raback
Site Admin
Posts: 4871
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Material Library

Post by raback »

Yes, just edit

Code: Select all

$ELMERHOME/bin/edf/egmaterials.xml
following similar syntax. You can even edit the menu structures of ElmerGUI. See
http://www.nic.funet.fi/pub/sci/physics ... Manual.pdf, Appendix C.

-Peter
GastónGarcía
Posts: 21
Joined: 08 Dec 2010, 01:00

Re: Material Library

Post by GastónGarcía »

Thank you Peter.
Gastón
daiweifeng
Posts: 1
Joined: 30 Mar 2011, 18:44
Antispam: Yes

Re: Material Library

Post by daiweifeng »

Maybe we can build a general database which uploaded and edited by users.
raback
Site Admin
Posts: 4871
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Material Library

Post by raback »

Yes, if somebody makes additions we'll be happy to include them in
http://elmerfem.svn.sourceforge.net/vie ... l?view=log
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: Material Library

Post by hazelsct »

You can also create your own separate XML material properties file and import it into the simulation using Model -> Material -> Add -> Material Library -> Append
petroo
Posts: 148
Joined: 13 Jan 2010, 19:07
Location: Aachen, Germany

Re: Material Library

Post by petroo »

Hello Peter,
raback wrote:Yes, if somebody makes additions we'll be happy to include them in
http://elmerfem.svn.sourceforge.net/vie ... l?view=log
A major showstopper in this respect is the lack of (defineable) units for the material data. For us it was a constant source of nuisance and errors when digging out and implementing new materials and entering respective data sets for our custom (construction materials) library in the past. Accordingly, even a rudimentary unit support would certainly help, especially so if a quite diverse group of contributors should become involved in the collection.

Even if you Elmer developers would not implement a full-fledged unit recalculation engine (which would certainly need a major effort) it would certainly help if a unit entry accompanying the numerical values in any data base would be mandatory and be at least checked before using the numerical value in a calculation. Each data contributor would at once see what unit is required, by simply taking a glance at the neighboring entries. And if someone would nevertheless enter some unusual/non-canonical unit Elmer could raise an error or a warning before entering nonsensical calculations by combining such data with canonical ones.

Regards,

Peter
dmitry
Posts: 53
Joined: 09 Dec 2014, 16:52
Antispam: Yes
Location: Russia

Re: Material Library

Post by dmitry »

Hi everyone!
I think what if to create the spesial topic or even forum for publishing of materials that created by users?
IMHO it's not comfortable to use egmaterials file if it contain a lot of different materials, while if these materials will be posed in topic it is very simple to find what that you need.
For exemple:
Subject: NaCl - salt

Code: Select all

  <material name="NaCl" >
   <parameter name="Density" >Variable Temperature; Real; 50 2160; 100 2148,494731; 150 2136,13735; 200 2122,943293; 250 2108,92897; 300 2094,111737; 350 2078,509856; 400 2062,14246 450 2045,029514;500 2027,191772; 550 2008,650737; 600 1989,42862; 650 1969,548289; 700 1949,033233; 750 1927,907507; 800 1906,195692; End</parameter> 
    <parameter name="Heat expansion coeff." >5.4e-7</parameter>
    <parameter name="Heat conductivity" >Variable Temperature; Real; 50 6,5; 150 3,8; 500 0,5; 800 0,5; End</parameter>
    <parameter name="Heat capacity" >Variable Temperature; Real; 50 879,9187661; 150 909,3665545; 250 935,2528791; 350 962,8149638; 450 994,6171491; 550 1032,365206; 650 1077,430858; 700 1103,093381; 750 1131,037222; 800 1161,404337; End</parameter>
    <parameter name="Sound speed" >5900.0</parameter>
    <parameter name="Relative Permittivity" >3.75</parameter>
    <parameter name="Melting Point" >800.0</parameter>
  </material>
Post Reply