lcharleux / abapy Goto Github PK
View Code? Open in Web Editor NEWEasy FEM pre / post processing using Python
Home Page: http://abapy.readthedocs.org/en/latest/index.html
License: GNU General Public License v2.0
Easy FEM pre / post processing using Python
Home Page: http://abapy.readthedocs.org/en/latest/index.html
License: GNU General Public License v2.0
I tried to run the advanced example-2d/3d multi-material indentation on my computer with python 2.7.15 environment. but got an issue like this:
execfile('launcher.py')
Traceback (most recent call last):
File "", line 1, in
File "launcher.py", line 5, in
db_manager.run_all()
File "classes.py", line 875, in run_all
self.run_next()
File "classes.py", line 856, in run_next
simu.run(work_dir = self.work_dir, abqlauncher = self.abqlauncher)
File "classes.py", line 725, in run
self.preprocess()
File "classes.py", line 666, in preprocess
l = mesh_l)
File "C:\Python27\lib\site-packages\abapy\indentation.py", line 244, in IndentationMesh
U2 = m2.nodes.eval_vectorFunction(disp2)
File "C:\Python27\lib\site-packages\abapy\mesh.py", line 634, in eval_vectorFunction
data1 = FieldOutput(labels = labels, data = data1, dti = dti, dtf = dtf)
File "C:\Python27\lib\site-packages\abapy\postproc.py", line 1569, in init
if data.any(): # data != None
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
and I also tried to fix the error by changing the line like:
if isinstance(data, array):'
but did not work. which seems that the error did not happen in that line.
Since I have already run the other example successfully, I really want to know what happened there.
Dear Sir
I have installation issue for your abapy packages.
I have anaconda with py 3 installation..
Steps I followed is first download git repository as zip file.
After in conda shell I run
conda install abapy.zip
all packages are installed.
When I try to call abapy with import abapy it gives the following error :
import abapy
Traceback (most recent call last):
File "", line 1, in
import abapy
File "C:\Users\zyuce\AppData\Local\Continuum\Anaconda3\lib\site-packages\abapy-0.1-py3.6.egg\abapy_init_.py", line 56, in
import indentation, materials, mesh, misc, postproc
ModuleNotFoundError: No module named 'indentation'
Which step may I missing?
Hi,
I would to try the lib Abapy
But when I launch abaqus python and try something like this :
from abapy.misc import dump
from abapy.postproc import GetHistoryOutputByKey as gho
Abaqus tells me he can't find "abapy.misc" lib.
I install this with the regular Python as explain here : http://abapy.readthedocs.io/en/latest/index.html
and add the abapy path too. Someone knows how to make it work ?
Thanks !
How to run abapy within abaqus python?
first, in the Tutorial chapter the command "abaqus job=indentation-axi
" not "-", but "_", the right is "abaqus job=indentation_axi
", it maybe a mistake in accident;
the second, when i use the python in abaqus, there always prompt " ImportError: No module named abapy.misc
".
who can give some advice?? very thanks~~
Crit distance not transmitted correctly in union.
The formula used for calculation of the norm of a vector is (( self * self )**.5).sum()
in abapy.postproc. It should be (vec*vec).sum()**0.5
instead.
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.