CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swiftBlock/swiftSnap] SwiftSnap and SwiftBlock, GUIs for OpenFOAM's meshers

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree70Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2019, 12:17
Default
  #281
New Member
 
Join Date: Jul 2017
Posts: 28
Rep Power: 6
luca1992 is on a distinguished road
Quote:
Originally Posted by kalle View Post
For some time I have been working on writing two python plug-in scripts for Blender 3D. The two tools assists the user in creating the blockMeshDict and snappyHexMeshDict with associated files. The tools have no interdependencies, but the users may use SwiftBlock to create more advanced base meshes for snappyHexMesh than just a single block.

I have the hope that the tools are easy to use, but please read the short user guides before starting. If anyone encounters problems, please bring them up here on the forum.

The two tools are tested in Blender 2.6x (They may also work for 2.5x, but not older, as Blender has gone through major revisions) using Ubuntu Oneiric 64-bit and Windows XP. Precompiled (recommended) versions are available at http://www.blender.org

http://openfoamwiki.net/index.php/SwiftBlock

http://openfoamwiki.net/index.php/SwiftSnap

I encourage people to suggests improvements and make own versions. Based on Python 3.2, the scripts are very easy to understand and customise.

Kalle
Hi Kalle I wanted to thank you so much for these SwiftBlock extensions for Blender because it allowed me to realize the geometry of the tunnel for my thesis work and it was a salvation. This extensions is really well done. Thanks again, best regards, Luca.
luca1992 is offline   Reply With Quote

Old   March 9, 2020, 06:25
Default SwiftBlock documentation
  #282
New Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 27
Rep Power: 13
tkeskita is on a distinguished road
Hi,

I moved SwiftBlock docs, they are now available at https://swiftblock.readthedocs.io/

Also, I've found out how to install VTK and Numba into Blender's Python environment, see docs for instructions. Disclaimer: I haven't tried out Numba in SwiftBlock yet, though. Reply here if it's not working.
tkeskita is offline   Reply With Quote

Old   November 23, 2020, 10:14
Default is SwiftBlock compatible with Big Sur
  #283
New Member
 
Join Date: Nov 2020
Posts: 1
Rep Power: 0
jurzaft is on a distinguished road
I'm kinda new to UNIX and openfoam.I installed SwiftBlock add-on. However, when I click preview, I get this error(attachment):

After this I googled it and I found out I should source openfoam. I wrote source $HOME/OpenFOAM-8/etc/bashrc , which gives me this error:
Your "Darwin" operating system is not supported by this release
of OpenFOAM. For further assistance, please contact https://openfoam.org

/Users/kaanalkan/OpenFOAM-8/etc/bashrc:source:232: no such file or directory: /opt/openfoam8/etc/bashrc

Can anyone help me?
Attached Images
File Type: jpg Screen Shot 2020-11-23 at 17.10.07.jpg (46.4 KB, 10 views)
jurzaft is offline   Reply With Quote

Old   April 30, 2021, 17:54
Default
  #284
New Member
 
Dave
Join Date: Apr 2021
Posts: 2
Rep Power: 0
Ethan All is on a distinguished road
I'm working on learning OpenFoam and am attempting to use SwiftBlock for the first time. I created a geometry, edge settings, boundary patches etc, but am having trouble exporting to a blockMeshDict file. When I click the Export button in the SwitBlock panel, it saves a blender file (with extension .blender) instead of a blockMeshDict text file.


I am using Blender version 2.82 with SwiftBlock from github/tkeskita as described in SwiftBlock Addon for Blender 2.8


Am I going nuts? Yes, this is making me nuts. Am I doing something wrong?
Ethan All is offline   Reply With Quote

Old   June 29, 2021, 09:42
Default
  #285
j2l
New Member
 
Phil M
Join Date: Jun 2021
Posts: 3
Rep Power: 2
j2l is on a distinguished road
Quote:
Originally Posted by Ethan All View Post
I'm working on learning OpenFoam and am attempting to use SwiftBlock for the first time. I created a geometry, edge settings, boundary patches etc, but am having trouble exporting to a blockMeshDict file. When I click the Export button in the SwitBlock panel, it saves a blender file (with extension .blender) instead of a blockMeshDict text file.
Am I going nuts? Yes, this is making me nuts. Am I doing something wrong?

Export button opens a folder selection BUT it also fills the file name with the .blend. I simply delete the filename and it works.
j2l is offline   Reply With Quote

Old   June 29, 2021, 10:20
Default wind tunnel walls, 3D to 2D for NACA profiles
  #286
j2l
New Member
 
Phil M
Join Date: Jun 2021
Posts: 3
Rep Power: 2
j2l is on a distinguished road
Hello,
I know Blender pretty well but I'm discovering swiftBlock.
I tried the "hypercube" mesh, and the sphere example works fine.
But I have issues when I try with a NACA profile:

If I set the inner cube inside the profile, I get this meshing in preview:
https://i.imgur.com/jZSFxoG.png




If I set the inner cube around the profile:
https://i.imgur.com/YL4UJuC.png




And sometimes, I get plain errors at preview, see my ticket: https://github.com/tkeskita/swiftBlock/issues/7


And my second problem is about the walls of the domain (wind tunnel): For straight profiles (that would go wall to wall) like this NACA profile, how to tell blockMesh, through swiftblock, to simply consider the profile is going into the wind tunnel walls (slip conditions)?

Kind of 2D within 3D domain.Something like this:
https://i.imgur.com/HwOVath.png

Or is there a way to make it fully 2D?


I tried multiple ways and didn't find one that correctly export and build correctly. At checkMesh I get errors.


Any idea?
j2l is offline   Reply With Quote

Old   June 29, 2021, 11:00
Default
  #287
New Member
 
Dave
Join Date: Apr 2021
Posts: 2
Rep Power: 0
Ethan All is on a distinguished road
Quote:
Originally Posted by j2l View Post
Export button opens a folder selection BUT it also fills the file name with the .blend. I simply delete the filename and it works.

Thanks for following up. I did figure it out eventually. CFD is complicated enough without having to deal with software quirks, albeit minor ones.
Ethan All is offline   Reply With Quote

Old   July 20, 2021, 04:29
Default
  #288
j2l
New Member
 
Phil M
Join Date: Jun 2021
Posts: 3
Rep Power: 2
j2l is on a distinguished road
Any help?
Someone who successfully did it?
j2l is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:54.