|
[Sponsors] |
September 25, 2009, 13:44 |
Inlet reading from a different case..
|
#1 |
Member
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17 |
Hi,
I have ran a case for a flow in channel. and I would like to use the outlet velocity as the inlet velocity in another case. The mesh is exactly the same in that plane for both cases. How do i do that? I am very new to OpenFoam so have no idea how to accomplish this task. Regards, Vishwa |
|
October 1, 2009, 07:39 |
|
#2 |
New Member
|
I've been fiddling with it for a very long time! You need to use timeVaryingMappedFixedValue as boundary condition on the inlet of the target case. Look at the pitzDailyExptInlet tutorial (for OF-1.6) for an example. The field is mapped from the data under constant/boundaryData
You have to write a sampleDict to sample the field from the outlet patch of the source case. Choose foamFile as output. (use the command Code:
find -name sampleDict Give the command Code:
sample -latestTime Eventually, you'll have to modify the coordinates in the file named points to make it agree with the coordinates of the target patch. You can use these values to map the field on your inlet. As someone says... enjoy! |
|
October 1, 2009, 12:06 |
|
#3 |
Member
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17 |
Thanks a lot for the info..I will try it out.. is there any way that I could also add some fluctuations to this field? for turbulence simulation..
Regards, vishwa |
|
October 1, 2009, 12:31 |
|
#4 |
New Member
|
i've read about it several times but you 'd better wait for someone more experienced
|
|
February 12, 2010, 11:03 |
inlet velocity from an inner surface velocity field
|
#5 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Hi FOAMers,
I would like to study more in detail the velocity field on a subdomain taken from a converged OF simulation. Since the overall velocity field of the source case influences the inlet velocity of the target domain, I was thinking about sampling data on an inner plane on the source case and use them as the inlet of the target case. Note that mesh and geometry of the target case is different from the source case. I am able to sample data from the source case using sampleDict and obtaining the wanted surface, but I do not know how to put them on the inlet of the target case.Should I edit the cells coordinates manually as suggested above or is there a faster way to do this mapping? I also guess that mapFields is not an option in my case, since there is not a defined mesh or geometry correspondence between the source and target domain. Any suggestion? Cheers, maddalena |
|
February 12, 2010, 14:38 |
|
#6 |
Member
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 17 |
You can use timeVaryingMappedFixedValue for turbulence parameters like k and epsilon as well as velocity. Once you get gricci's suggestion working for velocity, try the same method for turbulence.
Alan |
|
February 19, 2010, 03:29 |
Thank you!
|
#7 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Thanks Alan, after some modifications on the initial surface data, I get timeVaryingMappedFixedValue working!
|
|
February 18, 2011, 08:55 |
|
#8 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Hi mad,
I used the sample command and changed the points by hand. At time 0 my new case looks like this at the inlet (see attached picture 1). Oh, by the way: It should look like picture 2 Toni |
|
February 18, 2011, 09:53 |
|
#9 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Hi Toni,
I do not know what is happening there... I think there is something wrong with your data interpolation on the new face...Why don't you try to sample only some lines on the original mesh and create a sort of interpolation by hand? It worked for me; however I had a pretty simple geometry... mad |
|
February 18, 2011, 11:49 |
|
#10 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Oh, you mean you didn't sample the whole surface?
|
|
February 21, 2011, 03:26 |
|
#11 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
||
May 26, 2014, 11:10 |
|
#12 |
New Member
Join Date: Nov 2012
Posts: 27
Rep Power: 14 |
Hi val46,
Did you get your case working? With timevaryingmappedfixedvalue, I have also problem, the mapped results does not math the sampled field, even they have the same mesh geometry. It looks also ugly. Can you give me some tips? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam | jlpelerin | OpenFOAM Meshing & Mesh Conversion | 4 | April 25, 2011 17:56 |
Reading case file at certain time interval | Chin Fook | FLUENT | 1 | September 11, 2008 07:54 |
reading case into Fluent takes forever | John | FLUENT | 3 | July 28, 2005 06:23 |
reading case and data files | Riccardo Buccolieri | FLUENT | 2 | June 9, 2005 17:29 |
length scales at inlet for internal flows | Anne-Marie Giroux | Main CFD Forum | 3 | July 5, 1999 22:28 |