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

mapField: the same mesh, with one more patch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 9, 2012, 03:15
Default mapField: the same mesh, with one more patch
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 453
Rep Power: 9
samiam1000 is on a distinguished road
Dear All,

I am trying to use the mapField command in order to transfer the solution between 2 meshes that are identical.

There is only a difference: in the targetMesh I have added a patch.

How can I solve this?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   August 9, 2012, 06:24
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Samuele,

A quick solution might be to use createPatch on the first case. You can find examples by running:
Code:
find $FOAM_TUTORIALS -name createPatchDict
find $FOAM_UTILITIES -name createPatchDict
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 9, 2012, 06:31
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 453
Rep Power: 9
samiam1000 is on a distinguished road
Hi Bruno and thanks for answering,

actually I thought about creating a patch.

The point is that in case one I have a patch called wall-part_3-solid and I split this patch in two patches for case two: wall-part_3-solid and wall_back.

The point is that I have already the solution for case one.

Is it possible to add a patch on a solved case? Or I should run again the simulation?
samiam1000 is offline   Reply With Quote

Old   August 9, 2012, 06:33
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by samiam1000 View Post
Is it possible to add a patch on a solved case? Or I should run again the simulation?
I honestly don't know and never tried it on a case that already has a solution... but I think it should work
If it doesn't, then it's possibly a bug or missing feature
wyldckat is offline   Reply With Quote

Old   August 10, 2012, 20:59
Default
  #5
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 131
Rep Power: 6
mgdenno is on a distinguished road
Have you tried using the mapFieldsDict instead of use the -consistent flag?
mgdenno is offline   Reply With Quote

Old   October 29, 2012, 06:36
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 453
Rep Power: 9
samiam1000 is on a distinguished road
Dear all,

just one more question.

What can I do if - instead of adding a patch - I'd like to remove a patch?

This is the case: I study a steady solution of a room woth a door.

Suddenly, the door desappears. Hence, I have 2 identical mesh, without the patch ``door''.

I am looking for the removePatch feature. Does this exist?

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   October 31, 2012, 14:29
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Samuele,

I believe you still have to use createPatch!

But still, you don't need to remove a patch. You can simply define that patch as a wall and set parameters/boundary conditions as if it were a wall!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 8, 2014, 19:01
Default Did you find a solution to this problem?
  #8
New Member
 
Ripudaman Manchanda
Join Date: May 2013
Posts: 28
Rep Power: 3
ripudaman is on a distinguished road
Samuele,

I have a problem very similar to yours. Were you able to find a solution to the problem you discuss in this thread?

Thank you.
Ripu

Quote:
Originally Posted by samiam1000 View Post
Dear All,

I am trying to use the mapField command in order to transfer the solution between 2 meshes that are identical.

There is only a difference: in the targetMesh I have added a patch.

How can I solve this?

Thanks a lot,

Samuele
ripudaman 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
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
Create a GeometricField of a given type on given patch? philippose OpenFOAM Programming & Development 4 August 12, 2013 12:41
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 2 November 25, 2012 08:54
chtMultiRegionFoam Tutorial m.nichols19 OpenFOAM 12 September 9, 2010 11:56


All times are GMT -4. The time now is 09:34.