|
[Sponsors] |
November 2, 2015, 14:26 |
|
#221 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
You have two objects in your blender file (Cube and Cylinder). Seems like you want to mesh the Cube. You have created the geometry but you are missing the blocking which is necessary for the mesh. Regards, Mikko |
|
November 2, 2015, 20:01 |
|
#222 | |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
Quote:
I dont know why there is a cone shape on the top, the the bottom one looks weird as well |
||
November 3, 2015, 03:45 |
|
#223 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
SwiftBlock is snapping to the geometry in a way you are not expecting. Use "straight" feature for the edges that you don't want snapping. Also I think you don't want mesh inside the pipe and therefore you should define a "disabled" group in which you put the vertices of the pipe block.
|
|
December 12, 2015, 11:13 |
BlockMesh PATH?
|
#224 | |
New Member
Seokwon Whang
Join Date: May 2012
Posts: 25
Rep Power: 14 |
Quote:
I don't understand "Thus, the latest repository release is required for this fork. It also launches the BlockMesh in the background when previewing the mesh and therefore the BlockMesh must be in the PATH. " When I press 'preview' button, the error occurs from... ( class PreviewMesh(): def __init__(self, tempdir=None): if not shutil.which('blockMesh'): raise RuntimeError('ERROR: No BlockMesh Found!') ) |
||
December 13, 2015, 04:19 |
|
#225 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Seems like you don't have blockMesh in your PATH environment variable. Probably if you launch Blender from terminal it will help. SwiftBlock with multi-grading works with OpenFOAM 3.0.
|
|
December 13, 2015, 20:29 |
|
#226 |
New Member
Seokwon Whang
Join Date: May 2012
Posts: 25
Rep Power: 14 |
yes.. I use OF230... I will try it with OF300.
Thank you! |
|
January 4, 2016, 00:25 |
|
#227 |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
Hi there
Happy new year. I was using swiftblock fine last year, however when i tried the same thing this year, it turned out some weird problem with the preview function (show in the pic). The picture shows the example case and i get the same error for my own case. So i thought its not the problem caused by my own setup. I know nothing about python, hence i dont have the ability to track down the problem myself. Anyone have any suggestion on how i can overcome this problem? Many Thanks. |
|
January 4, 2016, 11:03 |
|
#228 |
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21 |
Hi!
Ok, some 16-year-too-late millennium bug :-) You are using Flowkersma's code, https://github.com/flowkersma/swiftBlock, and the error relates to code specific to that version. I leave it to him to answer this. Kalle |
|
January 4, 2016, 15:59 |
|
#229 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
Seems like you have created the blocking with the original swiftBlock and now you are trying to open it with my fork. To overcome this you may copy the blocking to a new object and then enable the swiftBlock again. You can copy the blocking to a new object by first selecting all in edit mode (press A) and then pressing P and choose selection. Mikko |
|
January 15, 2016, 11:01 |
|
#230 | |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Quote:
|
||
February 1, 2016, 10:16 |
|
#231 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Hi all,
I'm just trying to use swiftBlock in order to use it for such OpenFOAM cases. How could extract swiftBlock to addons directory? If you have any useful tutorial that would be great. As I'm new in blender and swiftBlock, I need to understand the way of work step by step. Many thanks in advanced. Maimouna |
|
February 1, 2016, 18:59 |
|
#232 | |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
Quote:
I was learning swiftblock and blender few months ago, Here is the link i found on youtube for swiftblock tutorial https://www.youtube.com/watch?v=a3ULmJe8I1o Its not that easy to follow, but after you watch it few times, it explains itself. Hopefully thats helpful. |
||
February 2, 2016, 06:55 |
|
#233 | |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Quote:
many thanks for your reply. But before this step, I couldn't able to extract swiftBlock to addons directory. Any help please? Send me please your way to install blender and then extract swiftBlock. May be I did someting wrong during installation. lots of thanks in advanced. Maimouna |
||
February 2, 2016, 09:10 |
|
#234 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
Here are the steps for Linux:
Regards, Mikko |
|
February 2, 2016, 12:13 |
|
#235 | |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Quote:
Now, I could start learning swiftBlock how its work. Best regards Maimouna |
||
July 28, 2016, 15:34 |
3D tank with a floating cylinder
|
#236 |
Member
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
P { margin-bottom: 0.08in; }A:link { } Dear All,
I was able to successfully download blender and swiftBlock and work on the example tutorial following the directions as given by Mr. Flowkersma. Thank you for detailed explanation. (OpenFOAM version 2.3, blender version 2.66a and swiftBlock was from the following link:https://github.com/nogenmyr/swiftBlock.git) Kindly can anyone please guide me as to how to create a 3D tank with a 3D floating object using swiftBlock. Similar to the the computational domain as in 'floatingObject' tutorial where in the 'topoSet' option was used. How to create a cylinder in a 3D tank (cube/cuboid) using swiftBlock?. Thank you. Most&More, Gautami Erukulla. |
|
September 27, 2016, 11:38 |
|
#237 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
I just found the swiftblock and really appreciate the work done. However I struggle to get it to work in blender 2.77. And I've already done the mistake to not using git clone so I think I installed it the correct way now.
Can anyone please confirm that it works with this blender version. For me it doesn't. I'm a beginner of blender as well but I've been able do dig through my error messages and I think I found the error and I think it is the the lines 89-92 in __init__.py that causes the problem Code:
try: bpy.ops.mesh.select_vertex_path(type='EDGE_LENGTH') except: bpy.ops.mesh.shortest_path_select(use_length=True) I tried Code:
try: bpy.ops.mesh.select_vertex_path(type='EDGE_LENGTH') except: bpy.ops.mesh.shortest_path_select(use_face_step=False, use_topology_distance=False, nth=inf, skip=1, offset=0) Also since the try and except doesn't allow multiple exceptions without more sophisticated error handling it might be an idea to check for different blender versions. I save you some googling by attaching the links. The functions are marked in yellow in both links. https://www.blender.org/api/blender_...st_path_select https://www.blender.org/api/blender_...st_path_select Really appreciate any help or guidance Simon |
|
September 27, 2016, 12:11 |
|
#238 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi Simon,
I got the same error as you did so it seems like SwiftBlock is not compatible with Blender 2.77. However, as you suggested, by replacing Code:
bpy.ops.mesh.shortest_path_select(use_length=True) Code:
bpy.ops.mesh.shortest_path_select() Best, Mikko |
|
September 27, 2016, 15:48 |
|
#239 |
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21 |
Errors like these are very typical when taking addons to a new version. Blender's API is constantly changing. Finding all these issues is a rather lengthy process to carry out, and is the major reason why I do not update the addons along with Blender. Old versions of Blender are also easily available, and newer versions do not provide any advantages when it comes to these addons... afterall, this is not the stuff Blender was designed for :-)
Get back if you have more trouble! Kalle |
|
September 27, 2016, 16:06 |
|
#240 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
I fully understand your point Kalle. I might install a slightly older version of blender then. Just thought that it might be a simple task too update.
But I can see that it is hard too keep the script updated for each and every single update of blender. Thanks for a great job! |
|
|
|