|
[Sponsors] | |||||
|
|
|
#81 |
|
New Member
Krzysztof Wołosz
Join Date: Oct 2010
Location: Poland
Posts: 8
Rep Power: 4 ![]() |
The heading from __init__.py says:
Code:
bl_info = {
"name": "SwiftBlock",
"author": "Karl-Johan Nogenmyr",
"version": (0, 1),
"blender": (2, 6, 4),
"api": 44000,
"location": "Tool Shelf",
"description": "Writes block geometry as blockMeshDict file",
"warning": "not much tested yet",
"wiki_url": "http://openfoamwiki.net/index.php/SwiftBlock",
"tracker_url": "",
"support": 'COMMUNITY',
"category": "OpenFOAM"}
KJW |
|
|
|
|
|
|
|
|
#82 |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
Good... obj['bevelToResMap'] is a python dictionary, which maps a string (str(round(e.bevel_weight*100))) to an integer. The integer tells how many cells you have requested on edge "e". For book-keeping, I use the Blender native edge feature "bevel_weight". For this reason it is important that the user does not manually edit edge's properties (floats bevel_weight and crease are used, as well as boolean use_edge_sharp). I do not know what happened in this particular case, but you should be able to reset bevel_weight by selecting all your block structure and forcing 0 cells on all edges. 0 cells means disabling forced edge resolution. If you do want to force some edges, you'll have to repeat that procedure.
Let me know if you get through. K |
|
|
|
|
|
|
|
|
#83 |
|
New Member
Krzysztof Wołosz
Join Date: Oct 2010
Location: Poland
Posts: 8
Rep Power: 4 ![]() |
Thanks a lot,
Your explanation lit my brain up ![]() Now, at least I can correct my errors. kjw |
|
|
|
|
|
|
|
|
#84 | |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
Thanks for you input, Bruno. I'll have a look at it! Good git usage is not one of my strengths :-)
Quote:
|
||
|
|
|
||
|
|
|
#85 |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
There was a bug in the new insert smoother feature, which was revealed when objects were scaled. Should be fixed now.
K |
|
|
|
|
|
|
|
|
#86 |
|
New Member
Florent Henon
Join Date: Dec 2012
Posts: 4
Rep Power: 2 ![]() |
P { margin-bottom: 0.21cm; } Hello Kalle,
P { margin-bottom: 0.21cm; } I am trying to learn to use swiftBlock and based on your cylinder example, I would like to create a quarter cylinder. I am attaching the created blender file. P { margin-bottom: 0.21cm; } When generating the blockMeshDict, the « fetching edge's polyLines from Circle » step is not considered. I guess this is due to the fact that, for a quarter cylinder, the Circle object is not closed. Is there a solution ? ![]() P { margin-bottom: 0.21cm; } Thanks in advance for your help. |
|
|
|
|
|
|
|
|
#87 |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
I see... I took the freedom to adjust your model somewhat...
K |
|
|
|
|
|
|
|
|
#88 |
|
New Member
Florent Henon
Join Date: Dec 2012
Posts: 4
Rep Power: 2 ![]() |
Thank you very much Kall,
I test your new blender file
|
|
|
|
|
|
|
|
|
#89 |
|
New Member
Florent Henon
Join Date: Dec 2012
Posts: 4
Rep Power: 2 ![]() |
There seems to be errors during the generation of the blockMeshDict. The blockMeshDict, and log.swiftblock remain empty ...
![]() I use Blender 2.62. Do you have the same problem? cheers |
|
|
|
|
|
|
|
|
#90 |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
Please use 2.66 and the latest swiftblock, as I used that for saving the blend file.
K |
|
|
|
|
|
|
|
|
#91 |
|
New Member
Florent Henon
Join Date: Dec 2012
Posts: 4
Rep Power: 2 ![]() |
Ok, sorry ...
![]() Thank you so much!
|
|
|
|
|
|
|
|
|
#92 |
|
New Member
David Haces
Join Date: Mar 2013
Posts: 21
Rep Power: 2 ![]() |
Hi! I have some problems with the installation of the addons.
I have downloaded blender 2.66 and also the SwiftBlock .py documents. I've compressed all of them in a .zip. Then, in blender, in userpreferences addons I selected install from file and I select the .zip I've created before. I think this extracts the .py files in the folder - /home/$user/.config/blender/$version/scripts/addons. Still, is not working. Does anybody have the same problem? |
|
|
|
|
|
|
|
|
#93 | |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
Hi,
I've never tried such an installation procedure. I always simply do like I wrote on the wiki Quote:
|
||
|
|
|
||
|
|
|
#94 |
|
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Lund
Posts: 183
Rep Power: 9 ![]() |
I just pushed a new SwiftBlock to the repo. Now there is a button which, when clicked, allows you to delete internal patch faces and add missing patch faces to your block structure. Internal patches is merely an aesthetic problem, but it can be nice to clean them anyway. External patch faces is on the other hand tedious to create, which is also reflected in the pipe bend example, where I just left them out. Now they can be created with just a few clicks. I have not changed the old pipe bend example at the wiki, so you can try it on that case.
Kalle p.s. there were some issues with book keeping of (forced) edge resolution and grading, which meant that you could effectively set a few different gradings. Now should be able to have up to 100 individual grading/resolution settings. |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|