CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] mirror data in paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree28Likes
  • 3 Post By Chris Lucas
  • 19 Post By MartinB
  • 2 Post By wyldckat
  • 1 Post By nanavati
  • 3 Post By er99

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2011, 07:51
Default mirror data in paraview
  #1
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
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
sourav90, vignesh_sr and Pavlord like this.
Chris Lucas is offline   Reply With Quote

Old   March 3, 2011, 08:16
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21
MartinB will become famous soon enough
Hi Christian,

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

Best regards

Martin
MartinB is offline   Reply With Quote

Old   July 18, 2013, 06:08
Default
  #3
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: India
Posts: 205
Rep Power: 18
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Posts: 74
Rep Power: 14
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
amolrajan and sourav90 like this.
__________________
wyldckat is offline   Reply With Quote

Old   October 10, 2013, 22:16
Default
  #9
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 14
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: 47
Rep Power: 13
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, 04:50
Thumbs up
  #11
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
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 !
sourav90 likes this.
nanavati is offline   Reply With Quote

Old   May 8, 2015, 15:31
Default
  #12
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: http://www.cfd-online.com/Forums/par...-paraview.html
wyldckat is offline   Reply With Quote

Old   August 20, 2019, 08:17
Default
  #14
New Member
 
Join Date: Jan 2017
Posts: 24
Rep Power: 9
er99 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
This works! But after doing it, I have a white line in the middle of the geometry after I cut a slice through it... How can this be removed?
er99 is offline   Reply With Quote

Old   August 25, 2019, 07:46
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by er10 View Post
How can this be removed?
Quick answer: There is no simple way to remove it, given that it's showing a slice from the real object, namely the symmetry plane/surface that is present on the original data. The Reflect filter will only created reflection, it will not merge the shared surface.
wyldckat is offline   Reply With Quote

Old   August 25, 2019, 09:27
Default
  #16
New Member
 
Join Date: Jan 2017
Posts: 24
Rep Power: 9
er99 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: There is no simple way to remove it, given that it's showing a slice from the real object, namely the symmetry plane/surface that is present on the original data. The Reflect filter will only created reflection, it will not merge the shared surface.
Thanks for your response. In the meantime, I've figured out a solution - instead of using slice, use clip and the line is no longer visible.
wyldckat, amolrajan and sourav90 like this.
er99 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
[OpenFOAM.org] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) dslbkxd OpenFOAM Installation 1 February 3, 2018 00:56
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 05:48
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 13:24
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 13:19.