Tcl api
import pyg3
Read a Tcl script from a string, and return the domain
domain = pyg3.read_tcl_domain("""
model basic -ndm 2 -ndf 3
node 1 0.0 0.0
node 2 1.0 0.0
""")
print(domain)
Retrieve a node from the domain
node = domain.getNode(1)
print(node)
# Retrieve coordinates from node
print(node.getCrds())