Geometry and Physics Modeling With Python
Geometry and Physics Modeling With Python
July 3, 2010
Outline
Plasm primitives
ALL CAPS all capital letters
Plasm primitives
ALL CAPS all capital letters
Application
is always unary VIEW(CUBOID([1,4,9]))
Plasm primitives
ALL CAPS all capital letters
Application
is always unary VIEW(CUBOID([1,4,9]))
Higher-level functions
Unusual but legal in Python COLOR(RED)(CUBE(1))
polylines = STRUCT(AA(POLYLINE)(List))
List = [
[[0,0],[4,2],[2.5,3],
[4,5],[2,5],[0,3],
[-3,3],[0,0]],
[[0,3],[0,1],[2,2],
[2,4],[0,3]],
[[2,2],[1,3],[1,2],
[2,2]]
]
polygon = SOLIDIFY(polylines)
List = [
[[0,0],[4,2],[2.5,3],
[4,5],[2,5],[0,3],
[-3,3],[0,0]],
[[0,3],[0,1],[2,2],
[2,4],[0,3]],
[[2,2],[1,3],[1,2],
[2,2]]
]
cells = SKELETON(1)(polygon)
List = [
[[0,0],[4,2],[2.5,3],
[4,5],[2,5],[0,3],
[-3,3],[0,0]],
[[0,3],[0,1],[2,2],
[2,4],[0,3]],
[[2,2],[1,3],[1,2],
[2,2]]
]
[[0,3],[0,1],[2,2],
[2,4],[0,3]],
[[2,2],[1,3],[1,2],
[2,2]]
]
complement = DIFFERENCE([
BOX([1,2,3])(solid), solid ])
List = [
[[0,0],[4,2],[2.5,3],
[4,5],[2,5],[0,3],
[-3,3],[0,0]],
[[0,3],[0,1],[2,2],
[2,4],[0,3]],
[[2,2],[1,3],[1,2],
[2,2]]
]
EXPL examples
List = SPLITCELLS(SPHERE(1)([8,12]))
EXPL examples
List = SPLITCELLS(SPHERE(1)([8,12]))
EXPL([1.5,1.5,1.5])(polList1)) EXPL([1.5,1.5,1.5])(polList2)
fun(SPHERE(1)([8,12]))) fun(SKELETON(1)(SPHERE(1)([8,12])))
P([ Q(b),Q(b) ])
SK(1)(plan)
SK(1)(plan) SK(1)(section)
EXPL([1.1,1.1,1.1])(SPLITCELLS(house))
str1 = STRUCT(10*[sk1,T(1)(11)])
A small 2-complex
Real-valued chains
A small 2-complex attach a signed
d -measure to d -cells
Real-valued chains
A small 2-complex attach a signed
d -measure to d -cells
such as length to
1-cells, area to 2-cells,
volume to 3-cells
Real-valued chains
A small 2-complex attach a signed
d -measure to d -cells
such as length to
1-cells, area to 2-cells,
volume to 3-cells
they restore part of the
geometrical
information left out by
the purely topological
construction of a cell
complex
Hasse graph
Chains/cochains over a cell complex
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Chompy
Python → Python ∪ Erlang
Erlang language
Concurrent processing done rigth
Erlang language
Concurrent processing done rigth
Erlang language
Concurrent processing done rigth
Erlang language
Concurrent processing done rigth
Erlang language
Concurrent processing done rigth