CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Rendering your CFD results - general discussion

Register Blogs Community New Posts Updated Threads Search

Like Tree21Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2011, 13:37
Default Rendering your CFD results - general discussion
  #1
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Hello fellow numericists!

I'm trying to get a discussion going about how to render your cfd results in an easy and efficient way...I'm wondering if there are people out there who have experience in rendering their solutions with a professional (although free) rendering tool like blender or povanimate..... I've been trying to read up on how to actually render my stuff, but I cant make heads or tails of it =

So, if there are guys and galls out there who would be interested in discussing rendering for numericists, maybe setting up tutorials and creating a webpage for the community, please reply!

so long, take care y'all!

cfd noob
Nucleophobe likes this.
cfdnewbie is offline   Reply With Quote

Old   June 21, 2012, 16:11
Default
  #2
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Hi,

Do you (after one year) already have a clue how to tackle this problem? I'd be interested in any information or tips that you might have!

Regards,

Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   June 21, 2012, 17:17
Default
  #3
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Hello,
Yes, I have in the meantime set up a rendering toolchain for our cfd solver that uses blender to create some nice animations. It does still require some more time then lets say create a simple still picture in tecplot, but of course it looks way better!
I havemt tried povray or any other remdering tool, i find blender does all I need.
All the best,
Newbie
cfdnewbie is offline   Reply With Quote

Old   June 22, 2012, 01:52
Default
  #4
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Thanks for your reply. Yesterday evening I also found some links pointing in the direction of Blender. It seems that a VRML export of the data from paraFoam can be imported and rendered in Blender directly?
Do you know a tutorial which you find very useful?
Thanks!
Ralph
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   June 22, 2012, 03:06
Default
  #5
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by Ralph M View Post
Thanks for your reply. Yesterday evening I also found some links pointing in the direction of Blender. It seems that a VRML export of the data from paraFoam can be imported and rendered in Blender directly?
Do you know a tutorial which you find very useful?
Thanks!
Ralph

Hello Ralph,
the way I did it was to search google for "paraview blender", since I'm using paraview for postprocessing. paraview can export x3d files, which blender can read. It is pretty easy to just import a single geomtry and render it, however, if you want to do time dependent stuff, you will have to do quite some scripting! But the vids look indeed very nice, I think, here's one from youtube I like:
http://www.youtube.com/watch?v=0aACFaRazuA

Cheers,
newbie
cfdnewbie is offline   Reply With Quote

Old   June 22, 2012, 03:11
Default
  #6
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Yep, you are right: http://www.openfoamworkshop.org/6th_...gun_slides.pdf

Hopefully the next OF user who is looking for this stuff doesn't has to spend an evening browsing the web

Thanks for your help!
mohseni_2012 likes this.
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   June 22, 2012, 03:21
Default
  #7
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by Ralph M View Post
Yep, you are right: http://www.openfoamworkshop.org/6th_...gun_slides.pdf

Hopefully the next OF user who is looking for this stuff doesn't has to spend an evening browsing the web

Thanks for your help!

Wow, great slides, thanks Ralph. If I had had these 6 months ago, I wouldn't have had to invest so much time in scripting python... but that's how you learn

Be very careful though when using "older" scripts for blender 2.63 and above. I wrote my scripts for 2.62, and found that some stuff didn't work in 2.63a and I had to rework quite some things. But it worked in the end....

If you need any more help, let me know!

Newbie

as a side note: hmmm...maybe I should write up my stuff, make some nice screenshots and post them all online as a tutorial...

Last edited by cfdnewbie; June 22, 2012 at 03:22. Reason: as a side note: hmmm...maybe I should write up my stuff, make some nice screenshots and post them all online as a tutorial...
cfdnewbie is offline   Reply With Quote

Old   June 22, 2012, 03:29
Default
  #8
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
http://www.youtube.com/watch?v=5-GtdRLfeFI

found it: here's the vid that helped me do the first rendering!
Nucleophobe likes this.
cfdnewbie is offline   Reply With Quote

Old   June 22, 2012, 03:46
Default
  #9
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Thanks! I will have a look into this later today.
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   July 17, 2012, 16:50
Default
  #10
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Hey Ralph,
just wondering: did you get your rendering done?
Cheers
cfd newbie
cfdnewbie is offline   Reply With Quote

Old   July 18, 2012, 02:25
Default
  #11
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 15
Ralph M is on a distinguished road
Good morning CFD Newbie,

Yes I managed to create some fancy renders. It's extremely difficult to render water (for multiphase flows with a ship) but once you got the settings right it works like a charm!

Attached you find one of the first renders that I made (altough I can make better ones now ) .

Regards,

Ralph
Attached Images
File Type: jpg KCS-render-marineCFD.jpg (16.0 KB, 405 views)
__________________
CFD for marine applications? Go to http://www.marinecfd.com/ and join the OF Ship Hydromechanics Group: http://www.cfd-online.com/Forums/gro...mechanics.html
Ralph M is offline   Reply With Quote

Old   July 18, 2012, 07:27
Default
  #12
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Hello Ralph,
looks great! glad it worked out for you. I'm working on setting up a website with some hints on how to render CFD results in blender. I'm sure there are more people out there who would like to give it a try. plus it looks so much better than tecplot

keep blending
cfd newbie
Ralph M, shreyasr and xoitx like this.
cfdnewbie is offline   Reply With Quote

Old   August 28, 2012, 02:39
Default
  #13
Member
 
Soroush
Join Date: Mar 2010
Posts: 52
Rep Power: 16
SH_P is on a distinguished road
Hi guys.
Your results look awesome. Can you please give us a clue how you created them. Specially, the transient ones! A tutorial would be a great idea!
Thanks, Soroush
SH_P is offline   Reply With Quote

Old   August 28, 2012, 05:17
Default Why not use Paraview?
  #14
New Member
 
Peter Maday
Join Date: Aug 2011
Posts: 14
Rep Power: 14
mpeti is on a distinguished road
Hi

Using Blender might be an option, but what is the problem with just creating the animations with Paraview itself? Paraview can open multiple files at once and animate the visualization at your convenience. You can very easily export frames of the animation with the dedicated functionality and create videos easily. If you are using OpenFOAM the tool paraFoam opens up the solution right the way you want but I am sure an easy solution exists for all major CFD tools.
mpeti is offline   Reply With Quote

Old   August 28, 2012, 05:54
Default
  #15
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Yeah, of course, animation in paraview is a lot easier, but the rendering with a professional render engine just looks a lot nicer! Plus you can do easy camera movement, POVs, textures, lighting etc!
cfdnewbie is offline   Reply With Quote

Old   August 28, 2012, 09:35
Default
  #16
Member
 
Soroush
Join Date: Mar 2010
Posts: 52
Rep Power: 16
SH_P is on a distinguished road
Quote:
Originally Posted by cfdnewbie View Post
Yeah, of course, animation in paraview is a lot easier, but the rendering with a professional render engine just looks a lot nicer! Plus you can do easy camera movement, POVs, textures, lighting etc!
Exactly, As a matter of fact, We are currently using Ensight for post processing and creating animations and it does its job great, even different types of camera movements are available. but that is not wat I want exactly!

I am not very familiar with Paraview and Blender. But I worked with Autodesk Maya for some years and I know the potential of a professional software like Blender for post-processing.

Honestly, I was going to import my data into Maya first through MEL, but it is very complicated, since I couldn't even import X3d files into it. But it seems that Blender can do the job more easily.

Anyway, Can you guys help me where to start?
I am learning Blender right now, But I think I should learn a bit of Pyton scripting as well. Can you suggest me a reference for that?

Thanks,
Soroush
SH_P is offline   Reply With Quote

Old   August 28, 2012, 10:47
Default
  #17
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Soroush,
here you will find the complete python script used in the blender python console to do the animations, i.e. read in the x3d files and do the videos in the thread:

http://www.blender.org/forum/viewtopic.php?t=23052

I havent been able to clean it up or write a concise tutorial due to time constraints, but if you have any additional questions, just let me know!


the toolchain should be like this:
1) export the geometry/solution as x3d from paraview
2) import it into blender
3) setup your camera, lights, animations
4) render the movie


The script does 2) and 4), in between, you have to setup the camera, lights etc in blender, save it as a blend file, and then execute blender with the python script!
Rafael_Coelho and AnthonyP like this.
cfdnewbie is offline   Reply With Quote

Old   August 28, 2012, 11:26
Default
  #18
Member
 
Soroush
Join Date: Mar 2010
Posts: 52
Rep Power: 16
SH_P is on a distinguished road
Thanks for the information,

Just one thing: what was the version of your Blender and Paraview when posting in that froum? I'm not sure, but I think scripts are a little version dependence, right?
SH_P is offline   Reply With Quote

Old   August 28, 2012, 11:34
Default
  #19
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Blender was either 2.63a or 2.63, dont remember....
Paraview was 3.14.1
cfdnewbie is offline   Reply With Quote

Old   August 28, 2012, 11:36
Default
  #20
Member
 
Soroush
Join Date: Mar 2010
Posts: 52
Rep Power: 16
SH_P is on a distinguished road
OK, Great,
Thanks
SH_P is offline   Reply With Quote

Reply


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
Matching CFD results and wind tunnel testing huskerwong Main CFD Forum 0 July 16, 2009 14:24
CFD vs Experimetal Results for Aerofoil aceofharts414 Main CFD Forum 0 April 22, 2009 07:14
please help me for general description of CFD Jiyeon Main CFD Forum 3 April 7, 2009 16:20
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 21:10
CFD - Trends and Perspectives Jonas Larsson Main CFD Forum 16 August 7, 1998 16:27


All times are GMT -4. The time now is 21:00.