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

OpenFOAM case exporter from SketchUp

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Antimony

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2015, 20:40
Default OpenFOAM case exporter from SketchUp
  #1
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi All,

Just thought would share with you all a plugin that I wrote that helps convert geometry from SketchUp to OpenFOAM case.

At the moment the capabilities of the plugin are limited, but it can export a basic case.

You can find the plugin here: https://github.com/venugopalansgr/Sk...er/eofv_skp.rb

Hope this helps at least a few of you in your work!

Cheers!

Antimony
wyldckat and nsf like this.
Antimony is offline   Reply With Quote

Old   April 2, 2015, 07:17
Default
  #2
Member
 
lillberg's Avatar
 
Eric Lillberg
Join Date: Mar 2009
Location: Stockholm
Posts: 80
Rep Power: 17
lillberg is on a distinguished road
Send a message via Skype™ to lillberg
Hi

Really like this plugin Got an error however in the skp_of_export function (see below) any ideas?

BR

Error:
#<NoMethodError: undefined method `name' for #<Sketchup::Edge:0x000000126f8a08>>


C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:221:in `block (2 levels) in skp_of_export'
C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:219:in `each'
C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:219:in `block in skp_of_export'
C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:126:in `each'
C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:126:in `skp_of_export'
C:/users/ejli/Application Data/SketchUp/SketchUp 2015/SketchUp/Plugins/eofv_skp.rb:709:in `block in <top (required)>'
SketchUp:1:in `call'
lillberg is offline   Reply With Quote

Old   April 2, 2015, 20:18
Default
  #3
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Thanks for trying out the plugin!

From the error stack it seems like in the SketchUp file you have entities other than Groups.

At the moment, the plugin requires that your geometry consists only of Groups. So if you make the Edge part of some geometry and put everything into a Group the plugin should work. I have attached sample SketchUp file on which the plugin would work.

If you are still having trouble, please let me know and I will investigate further.

Cheers!

Antimony
Attached Files
File Type: zip bigtest.zip (29.1 KB, 8 views)

Last edited by Antimony; April 2, 2015 at 20:25. Reason: Added in the attachment here itself
Antimony is offline   Reply With Quote

Reply

Tags
exporter, openfoam, plugin, sketchup


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
[OpenFOAM] ParaView 4.10 and OpenFOAM 2.3.0 Multiregion and decomposed case romant ParaView 3 April 7, 2014 15:42
Same SimpleFOAM Case converges with openFOAM 2.1 but diverges with openFOAM 2.0.1 alsdia OpenFOAM Running, Solving & CFD 3 October 22, 2012 11:25
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 15:44.