xara
Nonlinear finite element analysis.
xara is a Python package that provides an intuitive and performant API for nonlinear
finite element analysis, implemented in C++ through the OpenSeesRT framework.
OpenSees features state-of-the-art finite element formulations and solution
algorithms, including mixed formulations for beams and solids, over 200 material models, and an
extensive collection of continuation algorithms to solve highly nonlinear
problems.
This package may be used as a drop-in replacement for both OpenSees.exe and
OpenSeesPy (see Getting Started below), and generally provides a substantial performance boost.
[!NOTE]
This package is independent of the openseespy
library, which is documented in the OpenSees documentation
website.
Getting Started
The xara package can be installed into a Python environment
in the standard manner. For example, using pip:
pip install xara
There are several ways to use the xara package:
-
To execute Tcl procedures from a Python script, just create an instance
of the xara.Model class and call its eval() method:
model = xara.Model()
model.eval("model Basic -ndm 2")
model.eval("print -json")
-
To start an interactive interpreter run the shell command:
python -m opensees
To quit the interpreter, just run exit:
opensees > exit
-
The xara package exposes a compatibility layer that exactly reproduces
the OpenSeesPy functions, but does so without mandating a single
global program state. To run OpenSeesPy scripts, just change the import:
import openseespy.opensees
to
import opensees.openseespy
For true stateless modeling, the Model class should be used instead of the legacy
model function; see the documentation here.
Development
To compile the project see about/compiling
Support
|
|
solid
facet normal 0.0 -0.0 1.0
outer loop
vertex 155.4429931640625 -12.314200401306152 -17.899999618530273
vertex 155.64300537109375 -12.314200401306152 -17.899999618530273
vertex 155.4429931640625 -12.1141996383667 -17.899999618530273
endloop
endfacet
facet normal 0.0 0.0 1.0
outer loop
vertex 155.64300537109375 -12.1141996383667 -17.899999618530273
vertex 155.4429931640625 -12.1141996383667 -17.899999618530273
vertex 155.64300537109375 -12.314200401306152 -17.899999618530273
endloop
endfacet
facet normal -0.0 -1.0 -0.0
outer loop
vertex 155.64300537109375 -12.314200401306152 -17.899999618530273
vertex 155.4429931640625 -12.314200401306152 -17.899999618530273
vertex 155.64300537109375 -12.314200401306152 -18.100000381469727
endloop
endfacet
facet normal 0.0 -1.0 0.0
outer loop
vertex 155.4429931640625 -12.314200401306152 -18.100000381469727
vertex 155.64300537109375 -12.314200401306152 -18.100000381469727
vertex 155.4429931640625 -12.314200401306152 -17.899999618530273
endloop
endfacet
facet normal 1.0 0.0 0.0
outer loop
vertex 155.64300537109375 -12.1141996383667 -17.899999618530273
vertex 155.64300537109375 -12.314200401306152 -17.899999618530273
vertex 155.64300537109375 -12.1141996383667 -18.100000381469727
endloop
endfacet
facet normal 1.0 0.0 -0.0
outer loop
vertex 155.64300537109375 -12.314200401306152 -18.100000381469727
vertex 155.64300537109375 -12.1141996383667 -18.100000381469727
vertex 155.64300537109375 -12.314200401306152 -17.899999618530273
endloop
endfacet
facet normal -0.0 1.0 0.0
outer loop
vertex 155.4429931640625 -12.1141996383667 -17.899999618530273
vertex 155.64300537109375 -12.1141996383667 -17.899999618530273
vertex 155.4429931640625 -12.1141996383667 -18.100000381469727
endloop
endfacet
facet normal 0.0 1.0 -0.0
outer loop
vertex 155.64300537109375 -12.1141996383667 -18.100000381469727
vertex 155.4429931640625 -12.1141996383667 -18.100000381469727
vertex 155.64300537109375 -12.1141996383667 -17.899999618530273
endloop
endfacet
facet normal -1.0 0.0 -0.0
outer loop
vertex 155.4429931640625 -12.314200401306152 -17.899999618530273
vertex 155.4429931640625 -12.1141996383667 -17.899999618530273
vertex 155.4429931640625 -12.314200401306152 -18.100000381469727
endloop
endfacet
facet normal -1.0 0.0 0.0
outer loop
vertex 155.4429931640625 -12.1141996383667 -18.100000381469727
vertex 155.4429931640625 -12.314200401306152 -18.100000381469727
vertex 155.4429931640625 -12.1141996383667 -17.899999618530273
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 155.4429931640625 -12.314200401306152 -18.100000381469727
vertex 155.4429931640625 -12.1141996383667 -18.100000381469727
vertex 155.64300537109375 -12.314200401306152 -18.100000381469727
endloop
endfacet
facet normal -0.0 -0.0 -1.0
outer loop
vertex 155.64300537109375 -12.1141996383667 -18.100000381469727
vertex 155.64300537109375 -12.314200401306152 -18.100000381469727
vertex 155.4429931640625 -12.1141996383667 -18.100000381469727
endloop
endfacet
facet normal 0.0 -0.0 1.0
outer loop
vertex 136.35699462890625 12.1141996383667 -17.899999618530273
vertex 136.5570068359375 12.1141996383667 -17.899999618530273
vertex 136.35699462890625 12.314200401306152 -17.899999618530273
endloop
endfacet
facet normal 0.0 0.0 1.0
outer loop
vertex 136.5570068359375 12.314200401306152 -17.899999618530273
vertex 136.35699462890625 12.314200401306152 -17.899999618530273
vertex 136.5570068359375 12.1141996383667 -17.899999618530273
endloop
endfacet
facet normal -0.0 -1.0 -0.0
outer loop
vertex 136.5570068359375 12.1141996383667 -17.899999618530273
vertex 136.35699462890625 12.1141996383667 -17.899999618530273
vertex 136.5570068359375 12.1141996383667 -18.100000381469727
endloop
endfacet
facet normal 0.0 -1.0 0.0
outer loop
vertex 136.35699462890625 12.1141996383667 -18.100000381469727
vertex 136.5570068359375 12.1141996383667 -18.100000381469727
vertex 136.35699462890625 12.1141996383667 -17.899999618530273
endloop
endfacet
facet normal 1.0 0.0 0.0
outer loop
vertex 136.5570068359375 12.314200401306152 -17.899999618530273
vertex 136.5570068359375 12.1141996383667 -17.899999618530273
vertex 136.5570068359375 12.314200401306152 -18.100000381469727
endloop
endfacet
facet normal 1.0 0.0 -0.0
outer loop
vertex 136.5570068359375 12.1141996383667 -18.100000381469727
vertex 136.5570068359375 12.314200401306152 -18.100000381469727
vertex 136.5570068359375 12.1141996383667 -17.899999618530273
end
提示:代码过长已自动截断
评论