<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FDimensionless_material_expressions</id>
	<title>OpenSite/Guides/Dimensionless material expressions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kfdani-001-site10.gtempurl.com/index.php?action=history&amp;feed=atom&amp;title=OpenSite%2FGuides%2FDimensionless_material_expressions"/>
	<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Dimensionless_material_expressions&amp;action=history"/>
	<updated>2026-10-30T02:07:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Dimensionless_material_expressions&amp;diff=865&amp;oldid=prev</id>
		<title>BathAfrica: Add rewritten practical lesson with steps, code and expected results</title>
		<link rel="alternate" type="text/html" href="https://kfdani-001-site10.gtempurl.com/index.php?title=OpenSite/Guides/Dimensionless_material_expressions&amp;diff=865&amp;oldid=prev"/>
		<updated>2026-10-29T21:01:05Z</updated>

		<summary type="html">&lt;p&gt;Add rewritten practical lesson with steps, code and expected results&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{OpenSite scope}}&lt;br /&gt;
{{OpenSite lesson&lt;br /&gt;
|id=opensite.help.dimensionless-material-expressions&lt;br /&gt;
|summary=Assign a Python scalar expression to a dimensionless material property.&lt;br /&gt;
|prerequisites=A practice user material and the Python expression runtime. This lesson is separate from a material-standard definition.&lt;br /&gt;
|steps==== Create the material ===&lt;br /&gt;
Use the same practice-material inputs as the material creation lesson.&lt;br /&gt;
&lt;br /&gt;
=== Choose a dimensionless target ===&lt;br /&gt;
Poisson ratio is dimensionless. A bare Python scalar may fill this quantity destination; it cannot stand in for an arbitrary dimensional length or pressure.&lt;br /&gt;
&lt;br /&gt;
=== Store and recalculate ===&lt;br /&gt;
The rewritten expression is &amp;lt;code&amp;gt;0.22 + 0.08 * cos(60°)&amp;lt;/code&amp;gt;, with degree conversion in Python. Enable consent, then request recalculation.&lt;br /&gt;
&lt;br /&gt;
=== Check the value ===&lt;br /&gt;
The arithmetic result is 0.26. Read the property from the material object and compare with that independent expected number.&lt;br /&gt;
&lt;br /&gt;
|result=The object’s Poisson value is 0.26 within 1e-12.&lt;br /&gt;
|limitations=Arithmetic correctness is not validation of the chosen constitutive model or a design standard. Keep source, units and material assumptions together.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Complete example ==&lt;br /&gt;
{{Code|lang=python|code=&amp;lt;nowiki&amp;gt;import math&lt;br /&gt;
import opensite&lt;br /&gt;
&lt;br /&gt;
doc = opensite.execute(&amp;quot;document.new&amp;quot;, {})[&amp;quot;document&amp;quot;]&lt;br /&gt;
created = opensite.material_create_user(doc, {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;Practice steel&amp;quot;, &amp;quot;family&amp;quot;: &amp;quot;steel&amp;quot;, &amp;quot;role&amp;quot;: &amp;quot;structural_steel&amp;quot;,&lt;br /&gt;
    &amp;quot;has_elastic&amp;quot;: True, &amp;quot;elastic_pa&amp;quot;: 210.0e9,&lt;br /&gt;
    &amp;quot;has_poisson&amp;quot;: True, &amp;quot;poisson&amp;quot;: 0.28,&lt;br /&gt;
    &amp;quot;has_mass_density&amp;quot;: True, &amp;quot;mass_density&amp;quot;: 7850.0,&lt;br /&gt;
    &amp;quot;has_thermal&amp;quot;: True, &amp;quot;thermal_per_k&amp;quot;: 1.2e-5,&lt;br /&gt;
})&lt;br /&gt;
source = &amp;quot;0.22 + 0.08 * math.cos(math.radians(60))&amp;quot;&lt;br /&gt;
opensite.execute(&amp;quot;document.set_expression&amp;quot;, {&lt;br /&gt;
    &amp;quot;document&amp;quot;: doc, &amp;quot;object&amp;quot;: created[&amp;quot;id&amp;quot;], &amp;quot;property&amp;quot;: &amp;quot;poisson&amp;quot;,&lt;br /&gt;
    &amp;quot;expression&amp;quot;: source, &amp;quot;language&amp;quot;: &amp;quot;python&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
opensite.execute(&amp;quot;document.set_python_expressions_enabled&amp;quot;, {&lt;br /&gt;
    &amp;quot;document&amp;quot;: doc, &amp;quot;enabled&amp;quot;: True,&lt;br /&gt;
})&lt;br /&gt;
opensite.recalculate_python_expressions(doc)&lt;br /&gt;
actual = doc.get_object(created[&amp;quot;id&amp;quot;]).poisson.si_value&lt;br /&gt;
assert abs(actual - 0.26) &amp;lt; 1e-12&lt;br /&gt;
print(&amp;quot;Dimensionless Poisson value:&amp;quot;, actual)&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;os-page-nav&amp;quot;&amp;gt;{{Docnav|OpenSite/Guides/Python property expressions|OpenSite/Guides/Run your first script|OpenSite/Guides|All guides}}&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:OpenSite documentation]]&lt;/div&gt;</summary>
		<author><name>BathAfrica</name></author>
	</entry>
</feed>