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

outlet -> inlet how?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2010, 09:24
Default outlet -> inlet how?
  #1
New Member
 
Benni
Join Date: May 2010
Posts: 12
Rep Power: 15
egerland is on a distinguished road
Hi,

I don't know how to set an outlet velocity field result of a previous run as inlet velocity field in my present run.
Can anybody help me
Thanx
egerland is offline   Reply With Quote

Old   June 28, 2010, 09:35
Default
  #2
New Member
 
Join Date: Jun 2010
Posts: 23
Rep Power: 15
NorbertB is on a distinguished road
Hi,

You can try that (in your system file):

startFrom lastTime;
NorbertB is offline   Reply With Quote

Old   June 28, 2010, 10:15
Default
  #3
New Member
 
Benni
Join Date: May 2010
Posts: 12
Rep Power: 15
egerland is on a distinguished road
Hi Norbert,

I have a case, in which my inlet (O/U) of the boundaryField is fixedValue, uniform (10 0 0).
my outlet is set to zeroGradient.
In a next case, I want to take the results of the outlet velocity field and set them as the boundary field of the inlet for the new case. Instead of fixedValue, I want to use the results of the old case.
egerland is offline   Reply With Quote

Old   June 28, 2010, 10:58
Default
  #4
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21
MartinB will become famous soon enough
Hi Benni,

have a look at the mapFields utility: in the mapFieldsDict you can use the patchMap function.

http://www.openfoam.com/docs/user/mapFields.php

In your case the entry for patchMap might be:

patchMap (outlet inlet);

Preparations:
- define the appropriate mapFieldsDict in your second simulations "system" directory.
- use boundary condition fixedVelocity for the inlet of your second simulation with a dummy value of (0 0 0) initialized.

The command sequence is something like (replace the paths and the 1000):
cd path_to_second_simulation
mapFields path_to_first_simulation -sourceTime 1000

Check with paraview before starting the second simulation.

Martin
MartinB is offline   Reply With Quote

Old   June 29, 2010, 05:28
Default
  #5
New Member
 
Benni
Join Date: May 2010
Posts: 12
Rep Power: 15
egerland is on a distinguished road
Hi Martin,

thanx for your help.

I tried the second simulation with mapFieldsDict. The Field in paraview is o.k.

But I get the following error:

gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type fixedVelocity)
on patch inlet of field U in file "/home/eggert/OpenFOAM/eggert-1.6/run/cube_cyclic/0/U"
You are probably trying to solve for a field with a generic boundary condition.

From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 782.

FOAM exiting


The other point is: I think mapFields is perhaps not the right tool for what I want to do. I have a 2-D case with inlet on the left and outlet on the right. In the middle of the mesh I have a box, which stands for a wall in a 3D case.
For every simulation step the velocity Field at the outlet would be the inlet for the next simulation step. This means, that this simulation will give the same solution as a simulation with many boxes in a row.
My problem is to generate the inlet velocity field for every step of the simulation.
egerland is offline   Reply With Quote

Old   June 29, 2010, 10:47
Default
  #6
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21
MartinB will become famous soon enough
Hi Benni,

I assume that the cyclic boundary condition is the BC you are looking for.

Since I don't have experience with it, you may have a look at these threads:

http://www.cfd-online.com/Forums/ope...implefoam.html

http://www.cfd-online.com/Forums/ope...condition.html

This example in the OpenFOAMs tutorial directories might help, too:
tutorials/incompressible/channelFoam/channel395

Good luck

Martin
MartinB is offline   Reply With Quote

Old   July 26, 2017, 03:44
Question i also have same problem please help
  #7
New Member
 
Amar
Join Date: Dec 2016
Posts: 1
Rep Power: 0
Amar_CFD is on a distinguished road
hi
I am also trying to simulate the same case. I have one pipe and valve as a first geometry. i want to give outlet velocity of the first case as inlet velocity distribution for second case which is simple pipe.
1)I tried using mapFields as follows
in second case directory
mapFields -path_to_first_case -sourceRegioin -outlet -targetRegion inlet

i also modified mapFieldDict in second_case/system as
patchMap (outlet inlet )

its showing the error
-FOAM FATAL ERROR
cannot find file "points" in directory first_case/outlet in times "latest_time_value down to constant.
please help.
Amar_CFD 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
outlet -> inlet how? egerland OpenFOAM Pre-Processing 0 June 22, 2010 13:11
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
VOF Outlet boundary condition in cfd - ace JM Main CFD Forum 0 December 15, 2006 08:07
Outlet -> Inlet How? lego CFX 2 August 13, 2002 12:23
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


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