OpenSite/Concepts/Expressions: Difference between revisions

From BathAfrica Documentation
Jump to navigation Jump to search
Publish professional OpenSite help structure and learning paths
 
Connect OpenSite chapter overviews into the documentation reading flow
 
Line 30: Line 30:
* [[OpenSite/Guides/Dimensionless material expressions]]
* [[OpenSite/Guides/Dimensionless material expressions]]


<div class="os-page-nav">{{Docnav|OpenSite/Getting started|OpenSite/Guides|OpenSite/Guides|All guides}}</div>
<div class="os-page-nav">{{Docnav|OpenSite/Concepts/Properties and units|OpenSite/Materials|OpenSite/Guides|All guides}}</div>
[[Category:OpenSite documentation]]
[[Category:OpenSite documentation]]

Latest revision as of 14:16, 29 October 2026

OpenSite 0.0.1 · DevelopmentSource scope and availability

Choose the expression language explicitly and track whether its result is current.

Choose a language

Native formula Python expression
Language formula python
Execution Restricted document evaluator Shared embedded interpreter
Example object(id).width * 2 document.get_object("Beam").width * math.cos(math.radians(30))
Consent No Python consent required Enable first; recalculate separately
Opening a file Uses model formula semantics Retains source without silent execution

Keep dimensions compatible

A length expression must produce a length, not a pressure. Poisson ratio is dimensionless and may use a compatible scalar result. The leading = in the property UI is a formula marker; it is not a Python assignment statement.

Understand the execution lane

Console, editor/debugger and Python property evaluation share one interpreter and lane. Do not queue a competing calculation while it is busy or paused.

Follow a lesson