thsmit / topopt_in_petsc_wrapped_in_python Goto Github PK
View Code? Open in Web Editor NEWTopology optimization using PETSc: a Python wrapper and extended functionality
License: GNU Lesser General Public License v2.1
Topology optimization using PETSc: a Python wrapper and extended functionality
License: GNU Lesser General Public License v2.1
Hello,
I'm having trouble running the TopOpt wrapper provided in this repository on my Mac. Following the installation instructions, I was able to generate the dynamic library file. While the documentation refers to it as 'topoptlib.so', on macOS, it generated a file named 'topoptlib.dylib' instead.
I have some questions regarding running the 'beam.py' example:
import topoptlib
in Python, does this directly import 'topoptlib.dylib'?Traceback (most recent call last): File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 133, in <module> main() File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 19, in main data = topoptlib.Data() AttributeError: module 'topoptlib' has no attribute 'Data'
For your reference, I have attached an image below that depicts the current directory structure.
I appreciate any guidance you can provide to help me resolve this issue. Thank you!
(py37) jjyy@jjyy-virtual-machine:~/TopOpt_in_PETSc_wrapped_in_Python-master$ python3 test_bracket.py
File openning error!
File openning error!
File openning error!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.