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

Rendering your CFD results - general discussion

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

Like Tree12Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 28, 2012, 11:41
Default
  #21
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
Just one thing: if you get something done, please post back and share!
Nucleophobe likes this.
cfdnewbie is offline   Reply With Quote

Old   September 4, 2012, 01:59
Default
  #22
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
OK! I cleaned up your code (can be found on Blender.org forum).
Now, for Cycle implementation. I've found out how to correct the texture (vertex color paint) in cycle engine. However, after hours of struggling with python, I couldn't find a way to translate the process to code...
If you are interested I can describe the problem for you, maybe you can find a way!

BTW, I have tow question:
1. How did you automate the export process in Paraview? Do you have a code or something?
2. How did you make your animation using the resulting still images?

Thanks
SH_P is offline   Reply With Quote

Old   September 4, 2012, 02:59
Default
  #23
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
Quote:
Originally Posted by SH_P View Post
OK! I cleaned up your code (can be found on Blender.org forum).
Now, for Cycle implementation. I've found out how to correct the texture (vertex color paint) in cycle engine. However, after hours of struggling with python, I couldn't find a way to translate the process to code...
If you are interested I can describe the problem for you, maybe you can find a way!

BTW, I have tow question:
1. How did you automate the export process in Paraview? Do you have a code or something?
2. How did you make your animation using the resulting still images?

Thanks
Thanks and great that you are posting back! I looked at the cycles stuff as well and got as far as you did (I could import the x3d and set the vertex color in blender) but I couldnt find a way to do it in python....
If you have any ideas or want to share what you discovered, please do!

about your questions:
1) yes, I do have some lines of python code and I run paraview in batch mode (pvbatch), it just goes through all my files, imports them, applies a layout (forgot what they are called in paraview...statefile??) and then exports it as x3d

2) I used mencoder under linux...


all the best and thanks again for contributing!
cfdnewbie is offline   Reply With Quote

Old   September 4, 2012, 03:07
Default
  #24
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
If you can find a way to add a node in blender (equivalent to: "add>inpute>attribute" in node editor) it is almost done, but I couldn't find a way to add this specific node (Attribute).

I have only one paraview session so I wouldn't need to load different files. All I want to do is to export the .x3d file in every frame change. Can you help me with its python code? I've never used python in paraview and have no idea how to do it.

Thanks
SH_P is offline   Reply With Quote

Old   September 5, 2012, 03:04
Default
  #25
New Member
 
Throughput
Join Date: Sep 2012
Posts: 1
Rep Power: 0
tptbd is on a distinguished road
I am a new member on this forum. I think, i will get help from all member.
tptbd is offline   Reply With Quote

Old   September 9, 2012, 08:53
Wink
  #26
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
Quote:
Originally Posted by cfdnewbie View Post
Just one thing: if you get something done, please post back and share!
Finally found the way to use Cycle! I explained it Blender forum.
Now we can do almost everything with Blender !!

BTW, Is Reynolds your real name?

>Soroush
SH_P is offline   Reply With Quote

Old   September 9, 2012, 11:25
Default
  #27
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
Awesome Soroush!
I will check it out in the coming days, unfortunately I'm so bogged down by work at the moment that I can't focus on the nicer things But I will most certainly look it up!

Sorry for not replying to your paraview scripting problem, if you still need help with that, let me know and i can post the python I use!

all the best!


ps: no, reynolds is (sadly) not my real name!
cfdnewbie is offline   Reply With Quote

Old   September 9, 2012, 12:41
Default
  #28
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
No problem!
I Wrote a script that works fine, Actually, I rendered an animation of falling droplet simulated in Fluent as well!

The only problem is that my script uses time step counts (ViewTime command) which are all integer numbers. That is fine for the case of integer file names only.

Do you know how to get the the precise values of time steps and store them in an array? I tried some commands on the internet but none of them works.

Thanks,
>Soroush
SH_P is offline   Reply With Quote

Old   September 9, 2012, 14:15
Default
  #29
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
Quote:
Originally Posted by SH_P View Post
No problem!
I Wrote a script that works fine, Actually, I rendered an animation of falling droplet simulated in Fluent as well!
cool! is the video available somewhere?

Quote:
The only problem is that my script uses time step counts (ViewTime command) which are all integer numbers. That is fine for the case of integer file names only.

Do you know how to get the the precise values of time steps and store them in an array? I tried some commands on the internet but none of them works.

Thanks,
>Soroush
hm, I'm not sure what you are asking here... do you mean in paraview? or blender?? Sorry, I am confused?!?!
cfdnewbie is offline   Reply With Quote

Old   September 9, 2012, 14:48
Default
  #30
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
I mean in Paraview. Consider a loaded case has time steps : 0.001, 0.002,... . I want a command to extract these time step values for the case and put them in a list.

Ps. I will upload the video on YouTube soon!
SH_P is offline   Reply With Quote

Old   September 9, 2012, 15:01
Default
  #31
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
where would you get the timesteps from? your filename? (So your filename might my something like "Solution_10.25000.vtu" with 10.25 being the time)?

That would work by doing sth like
end = filename.find('vtu')
time = filename[end-8:end-1]

maybe you would have to convert that to a number, but that should give you the time from your filename...
cfdnewbie is offline   Reply With Quote

Old   September 9, 2012, 15:10
Default
  #32
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
Thanks for your reply,

That could be one case. The other is the case in which I load my files into Paraview (All at the same time, such as a transient Ensight case) so the time step values should be extracted from the current session not from individual file names.
Here is the code I've found but it doesn't work. (Maybe it is a version issue):
I want to make an array like: "tsteps"
http://paraview.org/Wiki/ParaView/Py...ling_with_time
SH_P is offline   Reply With Quote

Old   September 10, 2012, 03:07
Default
  #33
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
Found it mayself!

reeader = FindSource('case name')
tstrps = reader.TimestepValues
SH_P is offline   Reply With Quote

Old   September 10, 2012, 05:43
Default
  #34
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
awesome! I just looked at your nice tutorial on blender.org! thanks a lot, I will incorporate it into my code!
cfdnewbie is offline   Reply With Quote

Old   September 11, 2012, 03:20
Default
  #35
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
and really looking forward to your video
cfdnewbie is offline   Reply With Quote

Old   September 12, 2012, 05:34
Default
  #36
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
Here it is! :

http://www.youtube.com/watch?v=DE5zCX9x_Ms
Not a very big deal... Just wanted to test some of the lighting and texturing capabilities!
cfdnewbie likes this.
SH_P is offline   Reply With Quote

Old   September 12, 2012, 06:03
Default
  #37
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 546
Rep Power: 10
cfdnewbie is on a distinguished road
you sir, are my hero! That is very impressive! is it done with the blender render or cycles?
cfdnewbie is offline   Reply With Quote

Old   September 12, 2012, 06:19
Default
  #38
Member
 
Soroush
Join Date: Mar 2010
Posts: 47
Rep Power: 6
SH_P is on a distinguished road
Thanks,
Its done by Blender engine.
SH_P is offline   Reply With Quote

Old   September 12, 2012, 06:20
Default Hi!
  #39
New Member
 
James Camer
Join Date: Sep 2012
Posts: 1
Rep Power: 0
hitechengineering is on a distinguished road
Hi friends...I am new to this forum and want your support to understand and resolve CFD flow related problems in aerospace industry.

Regards
James.
hitechengineering is offline   Reply With Quote

Old   August 12, 2013, 09:29
Default
  #40
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 169
Rep Power: 7
markusrehm is on a distinguished road
Hi cfdnewbie,

I am trying to import the my paraview x3d to blender but it is missing the color.
I suspect it is an issue importing the colors since I get the following warning:

"Warning: adding faces did not work! file is invalid, not adding UVs or vcolors

I saw a similar error posted here:

http://www.blender.org/forum/viewtop...5725593b68583a

Do you know a solution?

Thanks, Markus.
markusrehm is offline   Reply With Quote

Reply

Thread Tools
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 On
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 15:23.