Changeset 14e9eb3 in sasview for calculator/docs/sphinx/_build/html/api/sld_calculator.html
- Timestamp:
- May 28, 2010 1:24:47 PM (15 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 25a2ee3
- Parents:
- 2882fb5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculator/docs/sphinx/_build/html/api/sld_calculator.html
rbeb374a r14e9eb3 25 25 <link rel="top" title="calculator v0.1.0 documentation" href="../index.html" /> 26 26 <link rel="up" title="Reference" href="index.html" /> 27 <link rel="next" title="Slit Length Calculator" href="slit_length_calculator.html" /> 27 28 <link rel="prev" title="Reference" href="index.html" /> 28 29 </head> … … 37 38 <a href="../py-modindex.html" title="Python Module Index" 38 39 >modules</a> |</li> 40 <li class="right" > 41 <a href="slit_length_calculator.html" title="Slit Length Calculator" 42 accesskey="N">next</a> |</li> 39 43 <li class="right" > 40 44 <a href="index.html" title="Reference" … … 54 58 <div class="section" id="module-sans.calculator.sld_calculator"> 55 59 <span id="sans-calculator-sld-calculator"></span><h2><a class="reference internal" href="#module-sans.calculator.sld_calculator"><tt class="xref py py-mod docutils literal"><span class="pre">sans.calculator.sld_calculator</span></tt></a><a class="headerlink" href="#module-sans.calculator.sld_calculator" title="Permalink to this headline">¶</a></h2> 56 <p>This module intends to compute the neutron scattering length density of molecule 57 @author: Gervaise B. Alina</p> 60 <p>This module intends to compute the neutron scattering length density 61 of a molecule.It uses methods of the periodictable package to provide 62 easy user interface for Sld calculator applications.</p> 58 63 <dl class="class"> 59 64 <dt id="sans.calculator.sld_calculator.SldCalculator"> 60 65 <em class="property">class </em><tt class="descclassname">sans.calculator.sld_calculator.</tt><tt class="descname">SldCalculator</tt><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator" title="Permalink to this definition">¶</a></dt> 61 66 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> 62 <p>compute neutron SLD and related parameters</p> 63 <dl class="method"> 64 <dt id="sans.calculator.sld_calculator.SldCalculator.calculate_coherence_im"> 65 <tt class="descname">calculate_coherence_im</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.calculate_coherence_im" title="Permalink to this definition">¶</a></dt> 66 <dd>Compute imaginary part of the absorption</dd></dl> 67 67 <p>Given a molecule, a density and a wavelength, this class 68 determine scattering length density.</p> 69 <p>Example: To get the sld value and the length 1/e the following 70 methods need to be called in this later order:</p> 71 <div class="highlight-python"><pre>formula = "H2O" 72 density = 1.0 73 wavelength = 6.0 74 sld_calculator = SldCalculator() 75 sld_calculator.set_value(formula, density, wavelength) 76 sld_real, sld_im, _ = sld_calculator.calculate_neutron_sld() 77 result : sld = sld_real +i sld_im</pre> 78 </div> 79 <p>Note: <strong>set_value()</strong> and <strong>calculate_neutron_sld()</strong> methods must 80 be called in this order prior calling <strong>calculate_length()</strong> to get 81 the proper result.</p> 68 82 <dl class="method"> 69 83 <dt id="sans.calculator.sld_calculator.SldCalculator.calculate_length"> … … 75 89 <tt class="descname">calculate_neutron_sld</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.calculate_neutron_sld" title="Permalink to this definition">¶</a></dt> 76 90 <dd>Compute the neutron SLD for a given molecule 77 @return absorp: absorption78 @return coh: coherence cross section91 @return sld_real : real part of the sld value 92 @return sld_im: imaginary part of the sld value 79 93 @return inc: incoherence cross section</dd></dl> 80 94 … … 87 101 <dl class="method"> 88 102 <dt id="sans.calculator.sld_calculator.SldCalculator.set_value"> 89 <tt class="descname">set_value</tt><big>(</big><em> user_formula</em>, <em>density</em>, <em>wavelength=6.0</em><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.set_value" title="Permalink to this definition">¶</a></dt>90 <dd>Store values of density and wavelength into the calculator91 and compute the volume</dd></dl>103 <tt class="descname">set_value</tt><big>(</big><em>formula</em>, <em>density</em>, <em>wavelength=6.0</em><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.set_value" title="Permalink to this definition">¶</a></dt> 104 <dd>Store values into the sld calculator and compute the corresponding 105 volume.</dd></dl> 92 106 93 107 </dd></dl> … … 113 127 <p class="topless"><a href="index.html" 114 128 title="previous chapter">Reference</a></p> 129 <h4>Next topic</h4> 130 <p class="topless"><a href="slit_length_calculator.html" 131 title="next chapter">Slit Length Calculator</a></p> 115 132 <h3>This Page</h3> 116 133 <ul class="this-page-menu"> … … 145 162 >modules</a> |</li> 146 163 <li class="right" > 164 <a href="slit_length_calculator.html" title="Slit Length Calculator" 165 >next</a> |</li> 166 <li class="right" > 147 167 <a href="index.html" title="Reference" 148 168 >previous</a> |</li>
Note: See TracChangeset
for help on using the changeset viewer.