CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

MapFields help (inlet, outlet)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2018, 17:36
Question MapFields help (inlet, outlet)
  #1
New Member
 
Ioanna
Join Date: Jan 2017
Posts: 5
Rep Power: 9
iostam is on a distinguished road
Hello,

I am using the interFoam for dam breaks. At the minute I have a long domain separated in two and there is some overlap in the x-direction. I have already run model 1 which has the water upstream with an open boundary on the right hand side.

I want to use the outlet conditions from my model 1 and use them as inlet for model 2 and I was told I can use MapFields to get this. Is this the case?

I tried to use the user guide's explanation mapFields <source dir> -consistent but I guess it is not consistent in my case and from the instructions I don't understand how to achieve it.Do I need MapFieldDict?

Can anyone advice?

Many thanks,
Ioanna
iostam is offline   Reply With Quote

Old   March 26, 2018, 04:23
Default
  #2
Member
 
Sebastian Trunk
Join Date: Mar 2015
Location: Erlangen, Germany
Posts: 60
Rep Power: 11
sisetrun is on a distinguished road
Hey Ioanne,

You can use the sample Utility in combination with the time/varying BC (Time-varying boundary condition) if you have the same cells at the inlet or use the mapFields to interplolate the fields.

Concerning the mapFields you have to keep in mind at least 2 things:
- in your 0 directory, the patches must match with your constant/polyMesh/boundary patches
- define the write cutting patches in your mapFieldsDict

Beside, make sure, that your mesh cuts the source case at the write position.

Best regards,

Sebastian
sisetrun is offline   Reply With Quote

Old   March 26, 2018, 05:08
Default
  #3
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by iostam View Post
[...] I have a long domain separated in two and there is some overlap in the x-direction. [...]
I don't understand the "overlap" but if you want to copy your Model 1 results onto Model 2, the mapFields utility is certainly the right choice.
Take a look at these threads [1] [2] as they explain the usage of mapFields.
RobertHB is offline   Reply With Quote

Old   May 28, 2018, 10:53
Default
  #4
New Member
 
Ioanna
Join Date: Jan 2017
Posts: 5
Rep Power: 9
iostam is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
I don't understand the "overlap" but if you want to copy your Model 1 results onto Model 2, the mapFields utility is certainly the right choice.
Take a look at these threads [1] [2] as they explain the usage of mapFields.


Dear Robert,


I apologise for the late reply, I was not notified of your reply.


When I say overlap what I mean is. Imagine you are modelling a 20m long flume in 2D so here my model 1 for the x direction would be from x=0 to x=10m and then model 2 would be from x=9m to x=20m. So I am trying to overlap that boundary at x=9m and use output from model 1 as input for model 2. Does this make sense?



Do you thing mapFields would work here as well?


Many thanks,
Ioanna
iostam is offline   Reply With Quote

Old   May 28, 2018, 10:59
Default
  #5
New Member
 
Ioanna
Join Date: Jan 2017
Posts: 5
Rep Power: 9
iostam is on a distinguished road
Quote:
Originally Posted by sisetrun View Post
Hey Ioanne,

You can use the sample Utility in combination with the time/varying BC (Time-varying boundary condition) if you have the same cells at the inlet or use the mapFields to interplolate the fields.

Concerning the mapFields you have to keep in mind at least 2 things:
- in your 0 directory, the patches must match with your constant/polyMesh/boundary patches
- define the write cutting patches in your mapFieldsDict

Beside, make sure, that your mesh cuts the source case at the write position.

Best regards,

Sebastian



Dear Sebastian,


Thank you for your reply and I apologise for my late answer. I agree, with what you are saying but I cannot seem to make it work for my case. Do you know of any simple tutorial on this that I can follow? On how to properly use this utility.



Many thanks,
Ioanna
iostam is offline   Reply With Quote

Old   February 21, 2021, 04:34
Default
  #6
New Member
 
anaspauzi's Avatar
 
Anas Muhamad Pauzi
Join Date: Nov 2019
Posts: 16
Rep Power: 6
anaspauzi is on a distinguished road
Quote:
Originally Posted by iostam View Post
Dear Robert,


I apologise for the late reply, I was not notified of your reply.


When I say overlap what I mean is. Imagine you are modelling a 20m long flume in 2D so here my model 1 for the x direction would be from x=0 to x=10m and then model 2 would be from x=9m to x=20m. So I am trying to overlap that boundary at x=9m and use output from model 1 as input for model 2. Does this make sense?



Do you thing mapFields would work here as well?


Many thanks,
Ioanna
I'm also reading around to find a solution to this and found the solution here using printPatchFace in this thread

Thank you

Last edited by anaspauzi; February 21, 2021 at 04:45. Reason: found the solution
anaspauzi is offline   Reply With Quote

Reply

Tags
interfoam; inlet, mapfields, outlet boundary, two models


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
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
pump outlet pressure higher than inlet pressure jstan3 FLUENT 14 February 13, 2014 23:44
Inlet and Outlet b.c. based on mass flux Hale OpenFOAM Pre-Processing 2 August 9, 2013 02:26
Mapping outlet patch to inlet patch of new case val46 OpenFOAM 0 February 18, 2011 11:22
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45


All times are GMT -4. The time now is 07:59.