Message Boards Message Boards

0
|
11745 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Getting ChemicalData to work?

Posted 8 years ago

Hello! I'm trying to make a table of "Polymers" and get the following Data: "Name", "MolecularFormulaDisplay", "Resistivity" "DielectricConstant". I also plan to sort the table by DielectricConstant and filter Missing data.

I just started as a Research Assistant at school, so I'm pretty new here.

This is what I have so far, and I'm getting only Missing[NotAvailable]. I don't know whether the filter isn't working or DielectricConstant is inexistent for the class "Polymers".

Short[DeleteCases[
  Table[ChemicalData[#, 
      prop], {prop, {"Name", "MolecularFormulaDisplay", 
       "Resistivity", "DielectricConstant"}}] & /@ 
   ChemicalData["Polymers"], {_, _, _, _Missing}], 4]
vals = Table[
     ChemicalData[#, 
      prop], {prop, {"Name", "MolecularFormulaDisplay", "Resistivity",
        "DielectricConstant"}}] & /@ ChemicalData["Polymers"];
Text[Grid[
  Prepend[vals[[1 ;; 10]], {"Name", "MolecularFormulaDisplay", 
    "Resistivity", "DielectricConstant"}], Frame -> All, 
  Background -> {None, {{{LightBlue, White}}, {1 -> LightYellow}}}, 
  Alignment -> Left]]
POSTED BY: Henrique Padilha
4 Replies

Sadly our coverage for these properties is minimal,

In[110]:= Length@DeleteMissing@ChemicalData[All, "DielectricConstant"]
          Length@DeleteMissing@ChemicalData[All, "Resistivity"]

Out[110]= 133

Out[111]= 71
POSTED BY: Jason Biggs

It's okay. Thank you Jason.

POSTED BY: Henrique Padilha
Posted 2 years ago

Dear Jason, I'm new to the Wolfram Language, and would like to programmatically access alloy data like can be done manually on this page: https://www.wolframalpha.com/input?i=UNS+S31600+resistivity

I have thus far failed at accessing any alloy data.

Thanks in advance! Duane

POSTED BY: Duane Kaufman

@duanek - you can access Wolfram|Alpha from Mathematica with something like the following, WolframAlpha["UNS S31600 resistivity"] There you should find everything you find on the website. In particular the "Result" pod contains the data you want. Click the "+" icon in the upper right corner of the pod enter image description here

and select "Quantity data". This should paste the following input in your notebook,

In[8]:= WolframAlpha["UNS S31600 resistivity", {{"Result", 1}, "QuantityData"}]

Out[8]= Quantity[0.000074, "Centimeters" "Ohms"]
POSTED BY: Jason Biggs
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract