|
[Sponsors] |
Points that lie between two boundary patches: do they assume a mean value? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2014, 13:20 |
Points that lie between two boundary patches: do they assume a mean value?
|
#1 |
Member
Join Date: Feb 2012
Posts: 35
Rep Power: 14 |
I have a cylinder volume identifing a chamber, with water at the bottom and air in the interior region above the water surface. I want to simulate a mass transportation of water from the bottom boundary to the ambient filled with air inside the chamber.
Thus, I defined the water "Bottom" surface with mass fractions Ywater=1 and Yair=0 and the "Side" surface of the chamber as zeroGradient, depending, time step by time step, on the calculation inside the inner region. What I realized at this point, is that the points of the cells that lie on the circumference shared by the water "Bottom" surface and the Side" wall, seem to assume, already at time=0, a mean values of mass fraction, density and molecular weight between the initial values defined for the two contiguous patches. I think that this affects the simulation, which behaves in a very odd way, creating a sort of sink of mass, because the value that the simulator calculates has no physical meaning for my Case. I want to straight assign to that points same values defined for "Bottom" patch, avoiding the simulator to find a mean value between the two contiguous patches: is there a way to do it? Any hint on that would be appreciated. Thank you |
|
November 23, 2014, 10:28 |
|
#2 |
Member
Join Date: Feb 2012
Posts: 35
Rep Power: 14 |
No one can help me on this issue?
I supposed this was a very easy question for the experts. Or maybe I wasn't very clear with the previous post. I would like just to know how I could address the points, used to generate the mesh with blockMeshDict, lying at the same time on two different boundaries, with different fields variables definition, to one boundary instead of to the other one. I found out that the solver, when meets points which share two boundaries, automatically take the mean value of the field defined for the two surfaces: that's exactly what I would like to avoid. Thank you. Matteo Last edited by Matt_B; November 23, 2014 at 12:07. |
|
November 24, 2014, 06:19 |
|
#3 |
Member
Artem Shaklein
Join Date: Feb 2010
Location: Russia, Izhevsk
Posts: 43
Rep Power: 16 |
Hello, Matt_B.
By points you mean really points (not cell and face centers)? Didn't know that in finite volume method points are used. May be you're making conclusion based on paraview representation of a solution data (because paraview can interpolate cell values to point values)? This way the point value can be mean. You can move a water surface away from the bottom boundary by modifying initial conditions. I think, this can eliminate some numerical errors. You can run cycle to change point values to be right ones: Code:
// the point to be forced corrected vector thePoint(x,y,z); forAll(yourField, pointi) { if(abs(mesh.Cp()[pointi] - thePoint) < SMALL) yourField[pointi] = valueAtBottom; } |
|
November 24, 2014, 09:47 |
|
#4 | |
Member
Join Date: Feb 2012
Posts: 35
Rep Power: 14 |
Quote:
Thank you very much for your reply, it helped very much to find again the right path. You are right, I just looked at the Paraview representation and saw that 2 points of each cell lying at the bottom circumference shared by the two patches have mean values between these and so I came to wrong conclusion. If this is just a representation, playing no role in calculation process, then I have to look for an other possible reason for my case to blow up. You are definitely right, Openfoam works with cell centers and face centers, don't understand how I lost this perspective....maybe because I don't succeed to make work my simulation and this goes me crazy. Matteo |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Accessing multiple boundary patches from a custom boundary condition file | ripudaman | OpenFOAM Programming & Development | 0 | October 22, 2014 19:34 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |