|
[Sponsors] |
October 16, 2012, 07:12 |
unsteady ramp inlet condition
|
#1 |
New Member
Join Date: Apr 2011
Posts: 28
Rep Power: 15 |
Hi all,
i'm trying to assign unsteady inlet boundary condition (ramp-shaped UX profile) working on a multiphase problem. In OF 2.1.1 I can do it using the uniformFixedValue type by this way in the 0/U file: inlet { type uniformFixedValue; uniformValue csvFile; csvFileCoeffs { fileName "$FOAM_CASE/u_ramp.txt" outOfBounds clamp; hasHeaderLine true; refColumn 0; componentColumns (1 2 3); } } where the u_ramp.txt is something like the following: Time,Ux,Uy,Uz 0.00, 0.0, 0.0, 0.0 0.01, 0.0, 0.0, 0.0 0.02, -0.066363, 0.0, 0.0 0.03, -0.132726, 0.0, 0.0 0.04, -0.199089, 0.0, 0.0 0.05, -0.265452, 0.0, 0.0 0.06, -0.331815, 0.0, 0.0 0.07, -0.398178, 0.0, 0.0 0.08, -0.464541, 0.0, 0.0 0.09, -0.530904, 0.0, 0.0 0.10, -0.597267, 0.0, 0.0 0.11, -0.663630, 0.0, 0.0 0.12, -0.730000, 0.0, 0.0 0.13, -0.730000, 0.0, 0.0 0.14, -0.730000, 0.0, 0.0 0.15, -0.730000, 0.0, 0.0 The problem is: Paraview reports this error trying to visualize results: ERROR: In /home/utkarsh/Kitware/superbuild/paraview/src/paraview/VTK/IO/vtkOpenFOAMReader.cxx, line 6535 vtkOpenFOAMReaderPrivate (0x298a3d0): Wrong list type for uniform field Is not all. In the variable list available to be visualized I can't find U for inlet boundary, and I find U (of cell) just for internalMesh, while the interpolated one does not appear. In my idea this is not a post-processing problem, but my doubt is if I setup the unsteady boundary condition properly. Has anyone experiences with a ramp inlet in OpenFOAM? Thanks for your support, Kind regards, Andrea |
|
October 16, 2012, 09:08 |
|
#2 |
Member
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16 |
I have noticed that ParaView doesn't always understand the uniformFixedValue boundary condition if I load the files from vtk of with a .foam file.
However, if I use paraFoam it works well, because apparently there is some conversion that fixes the problem. Have you used paraFoam to open your dataset?! |
|
October 16, 2012, 10:23 |
|
#3 |
New Member
Join Date: Apr 2011
Posts: 28
Rep Power: 15 |
Hi Michiel,
thanks a lot for your reply. I was used to use the paraview command instead of paraFoam. You're right, using paraFoam the problem is fixed. Good. A second issue is: OpenFOAM shows me some convergence problems using the unsteady boundary condition. I'm using a ramp at inlet to grow up gradually the velocity in order to assign a smooth velocity profile and reach convergence in less iterations. But the result at the moment is that I reach no convergence by this way. So, do I have to change something in the numerical parameters (fvSchemes, fvSolutions) in order to suit unsteady BCs? Thanks again for your help! Regards, Andrea |
|
October 16, 2012, 11:42 |
|
#4 |
Member
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16 |
Hi Andrea,
To be able to answer that I need to know more about the case you are trying to model. What are you modelling and what are the boundary conditions you are applying?! |
|
October 16, 2012, 16:45 |
|
#5 |
New Member
Join Date: Apr 2011
Posts: 28
Rep Power: 15 |
Hi,
sure I give you all details. I'm working on naval application of a hull in a multiphase flow. The problem can be referred to the wigley-hull tutorial, but I'm trying to improve different features, such as an unsteady ramp inlet boundary condition. The hull is in a 3D rectangular domain and I've attached files regarding numerical parameters and all boundary conditions. Notice that the initial position of free surface (alpha1 is mass fraction) is set with command setFields just before the start of the computation. I really appreciate your support! Kind regards, Andrea |
|
October 18, 2012, 06:05 |
|
#6 |
Member
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 16 |
Hi Andrea,
I can't really find a clear reason for the case not to converge. Do you have convergences issues in the inner or the outer loop of your iterations? |
|
August 7, 2013, 04:33 |
|
#7 |
New Member
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17 |
Hi all,
I have the same problem as in post #1 in this thread. My configuration: OF 2.2.1 and Paraview 4.0.1 Since I could not compile the PV3 readers for ParaView 4 I use the PV builtin-reader - which works well, except for the case with a Boundary condition "uniformFixedValue". That's why using paraFoam makes no difference in my case. Any ideas how to fix this problem? Stefan |
|
August 25, 2013, 12:43 |
|
#8 | |
New Member
Stephen Bosch
Join Date: Feb 2013
Location: Germany
Posts: 22
Rep Power: 13 |
Hi Stefan:
Quote:
Are you running a multiprocessor simulation? |
||
August 26, 2013, 06:03 |
|
#9 |
New Member
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17 |
||
October 22, 2013, 01:57 |
|
#10 |
New Member
Jakob Hærvig
Join Date: Sep 2012
Location: Aalborg, Denmark
Posts: 27
Rep Power: 14 |
Did you manage to solve this?
|
|
October 22, 2013, 05:23 |
|
#11 |
New Member
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17 |
||
Tags |
inlet, ramp, unsteady b.c. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VOF Inlet condition | Rizwan | FLUENT | 15 | July 5, 2018 17:33 |
unsteady inlet velocity udf | jill | FLUENT | 8 | February 10, 2015 07:04 |
Unsteady pressure differential between inlet and outlet of the pipe for single phase | joshi20h | FLUENT | 0 | September 26, 2012 13:41 |
unsteady state inlet boundry condition | shubham | FLUENT | 3 | March 1, 2009 09:34 |
transitional inlet boundary condition | kamp | CFX | 1 | June 21, 2006 12:08 |