Open
Conversation
Fails with:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/run/media/desperado/smb/daten/eigene_dateien/isl/messtechnik/stossrohr/selfmade/cfd/example_arc.py in <module>()
80 # output
81 #print(bmd.format())string = bmd.format()
---> 82 string = bmd.format()
83 f = open("blockMeshDict", "w")
84 f.write(string)
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/__init__.py in format(self)
410 (
411 );'''
--> 412
413 def format(self):
414 template = Template(r'''/*--------------------------------*- C++ -*----------------------------------*\
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/__init__.py in format_edges_section(self)
349 v.index = i
350
--> 351 def format_vertices_section(self):
352 """format vertices section.
353 assign_vertexid() should be called before this method, because
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/__init__.py in format(self, vertices)
190 def __init__(self, vnames, name, interVertex):
191 """Initialize ArcEdge instance
--> 192 vnames is the vertex names in order descrived in
193 http://www.openfoam.org/docs/user/mesh-description.php
194 # two vertices is needed for Arc
AttributeError: 'str' object has no attribute 'x'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fails with:
AttributeError Traceback (most recent call last)
/run/media/desperado/smb/daten/eigene_dateien/isl/messtechnik/stossrohr/selfmade/cfd/example_arc.py in ()
80 # output
81 #print(bmd.format())string = bmd.format()
---> 82 string = bmd.format()
83 f = open("blockMeshDict", "w")
84 f.write(string)
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/init.py in format(self)
410 (
411 );'''
--> 412
413 def format(self):
414 template = Template(r'''/--------------------------------- C++ -----------------------------------\
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/init.py in format_edges_section(self)
349 v.index = i
350
--> 351 def format_vertices_section(self):
352 """format vertices section.
353 assign_vertexid() should be called before this method, because
/usr/lib/python3.6/site-packages/ofblockmeshdicthelper/init.py in format(self, vertices)
190 def init(self, vnames, name, interVertex):
191 """Initialize ArcEdge instance
--> 192 vnames is the vertex names in order descrived in
193 http://www.openfoam.org/docs/user/mesh-description.php
194 # two vertices is needed for Arc
AttributeError: 'str' object has no attribute 'x'