CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

mirror data in paraview

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

Like Tree3Likes
  • 3 Post By MartinB

Reply
 
LinkBack Thread Tools Display Modes
Old   March 3, 2011, 08:51
Default mirror data in paraview
  #1
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

I have run a case with a symmetric geometry, Therefore, I used the symmetry in the simulation (simulated only half of the geometry) .

Is it now possible (and if it is, how can I do it) to mirror the data at the symmetry line so I can see the data for the "whole" geometry?

Thanks for the help.

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   March 3, 2011, 09:16
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Hi Christian,

you can use "Filters->Alphabetical->Reflect" to do this.

Best regards

Martin
ebrahim27, neiht and nanavati like this.
MartinB is offline   Reply With Quote

Old   July 18, 2013, 06:08
Default
  #3
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: Cape Town - South Africa
Posts: 186
Rep Power: 8
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Dear Martin,
I have done my simulation for single passage of a fan.
now I want to read the data for the whole fan.

how can I do that, Can you please help me?

Thanks for your time,
Sivakumar
sivakumar is offline   Reply With Quote

Old   July 21, 2013, 11:21
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Sivakumar: Can you at least specify how much of the fan you have simulated? Otherwise it's nearly impossible to help you...

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 22, 2013, 03:57
Default
  #5
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: Cape Town - South Africa
Posts: 186
Rep Power: 8
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Dear Bruno,
Thank you for your kind reply, the simulation which I have done is 1/8 th of the fan.

As MartinB instruction, I have imported the passage.

I am able to import up to 4 Blades with out any problem, when I import further paraView crashes immediately. It is being bit difficult in paraView.

it seems the problem occurs due to memory problem, I have 32 Gig RAM and 8 i7 processors.


Thanks,
Sivakumar
sivakumar is offline   Reply With Quote

Old   July 22, 2013, 08:50
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Sivakumar,

How many cells does your simulated mesh have? And how many times will you have to reflect it?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 22, 2013, 11:13
Default
  #7
Member
 
Neilson Whit
Join Date: Aug 2011
Location: USA
Posts: 49
Rep Power: 5
wolfindark is on a distinguished road
Dear All

I simulate 20 degree portion of a cylindrical geometry using symmetric boundary with interFoam.

I would like to visualize full cylinder in paraFoam.
is it possible to do that? How ?

thank you in advance
wolfindark is offline   Reply With Quote

Old   September 22, 2013, 13:07
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Neilson,

A quick test indicates that the "Reflect" filter is limited to using the bounding box limits or the major axis.
What this means is that since you have 20 degrees only, then:
  1. You first need to align one of the faces with one of the major axis, by using the "Transform" filter.
  2. Then apply the "Reflect" filter once over the face that is aligned and over which you have a symmetry plane.
  3. Then by using the resulting 40 degree geometry, you have to do the first step once again, so that it's properly aligned once again and then do the second step.
  4. I advise you to use a clockwise evolution, which will likely be something like (in degrees): 20->40->80->160->320, at which point you only need to reflect the "40" from step #3 to the other side, therefore completing the cylinder.
The other possibility is to use the Python Trace feature, for figuring out how to automate this process with a macro: http://paraview.org/Wiki/Python_GUI_Tools#Trace

You can also select the list of filters that were applied and create a new filter that basically is a combo filter. Problem is that the original geometry will always have to be place in the same place.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 10, 2013, 22:16
Default
  #9
Member
 
Neilson Whit
Join Date: Aug 2011
Location: USA
Posts: 49
Rep Power: 5
wolfindark is on a distinguished road
Dear Bruno

I appreciate very much for your useful and clear explanation.

best regards
wolfindark is offline   Reply With Quote

Old   July 13, 2014, 05:14
Default
  #10
Member
 
Jack
Join Date: Aug 2012
Posts: 42
Rep Power: 4
JackW is on a distinguished road
I know this is an old post, but it may help people coming across it like me!

The way I mirrored the data (i wanted to now do the simulation 3D from a quasi-3D mesh) was to duplicate the values.

The mesh numbering works so that if you take all the internal values into a file internalU and just do:

cat internalU internalU > internalU_2

and then include this new file (removing the old values), then the flow field comes out as expected. You have to do this for the boundary patches too.

It is a lengthy process, but it is the solution that requires the least thinking or coding.

Jack
JackW is offline   Reply With Quote

Old   January 16, 2015, 05:50
Thumbs up
  #11
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 3
nanavati is on a distinguished road
Quote:
Originally Posted by MartinB View Post
Hi Christian,

you can use "Filters->Alphabetical->Reflect" to do this.

Best regards

Martin
Thanks a ton for sharing ! Unfortunately Poor OpenFOAM really lacks in Documentation !
nanavati is offline   Reply With Quote

Old   May 8, 2015, 15:31
Default
  #12
Senior Member
 
Syavash
Join Date: Apr 2010
Location: Tehran, Karaj
Posts: 214
Rep Power: 8
syavash is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Neilson,

A quick test indicates that the "Reflect" filter is limited to using the bounding box limits or the major axis.
What this means is that since you have 20 degrees only, then:
  1. You first need to align one of the faces with one of the major axis, by using the "Transform" filter.
  2. Then apply the "Reflect" filter once over the face that is aligned and over which you have a symmetry plane.
  3. Then by using the resulting 40 degree geometry, you have to do the first step once again, so that it's properly aligned once again and then do the second step.
  4. I advise you to use a clockwise evolution, which will likely be something like (in degrees): 20->40->80->160->320, at which point you only need to reflect the "40" from step #3 to the other side, therefore completing the cylinder.
The other possibility is to use the Python Trace feature, for figuring out how to automate this process with a macro: http://paraview.org/Wiki/Python_GUI_Tools#Trace

You can also select the list of filters that were applied and create a new filter that basically is a combo filter. Problem is that the original geometry will always have to be place in the same place.

Best regards,
Bruno

Dear Bruno,

I am newbie in OF and it might be silly request: Where is this "Filter" menu?! I can not find it!!

Thanks.
syavash is offline   Reply With Quote

Old   May 10, 2015, 14:47
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by syavash View Post
I am newbie in OF and it might be silly request: Where is this "Filter" menu?! I can not find it!!
Quick answer: There is no menu bar on paraview
wyldckat 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
Paraview nice animation PyGloo ParaView 4 June 7, 2012 12:34
Paraview not found fusij OpenFOAM Installation 2 January 1, 2011 21:44
Distributed ParaView and PV3FoamReader micalil OpenFOAM Paraview & paraFoam 4 July 1, 2010 05:09
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 12:59


All times are GMT -4. The time now is 14:16.