2023年6月3日星期六

solve module cannot found problem.

Shit, I stuck in a environment path for so many days but finally crack through it. 


after sudo gedit .~bashrc, you put a souce to it.


but what the ass

 you also need to  make the module you want is under the directory path 

e.g. home/ass/


copy the  module there but not under anaconda....hey man you dude!

 

update 22/12

the tiGAR-master should be rename as tIGAR, so inside still have another tIGAR, so the whole directory have to be maintained. 

haha I finally can run the karmensky code 

step by step

 

first 

use gmsh 4.4.1 mesh the geo with step in surface.step

then it will generate gmsh

then use python chamelon.py to generate .xdmf and h5, 

then create a folder 

 fluid-solid problem parameters
p = parser.add_argument_group("fluid-solid problem")
p.add_argument("--mesh-folder",dest="MESH_FOLDER",
               default="./mesh-M0/",
               help="Folder that contains the fluid-solid mesh and markers.")
p.add_argument("--mesh-filename",dest="MESH_FILENAME",
               default="aorta_mesh.xdmf",
               help="Filename of the fluid-solid mesh.")
p.add_argument("--subdomains-filename",dest="SUBDOMAINS_FILENAME",
               default="aorta_subdomains.xdmf",
               help="Filename of the fluid-solid subdomains markers.")
p.add_argument("--boundaries-filename",dest="BOUNDARIES_FILENAME",
               default="aorta_boundaries.xdmf",
               help="Filename of the fluid-solid boundary markers.")
p.add_argument("--markers-string",dest="MARKERS_STRING",default="markers",
               help="Mesh physical group marker string.")
p.add_argument("--polynomial-degree",dest="POLYNOMIAL_DEGREE",
               type=int,default=1,
               help="Fluid-solid problem polynomial degree.")      

 

https://fenics.readthedocs.io/projects/ffc/en/latest/installation.html#id9  


https://stackoverflow.com/questions/74585622/pyfirmata-gives-error-module-inspect-has-no-attribute-getargspec

so got that error chane the visitor.py under coffee to inspect.getfullargspec

Python3.11 Removed: The getargspec() function, deprecated since Python 3.0; use inspect.signature() or inspect.getfullargspec() instead. May 2 at 5:05

没有评论: