If the pressure equation that
If the pressure equation that potentialFoam solves is not laplacian(p)=0 then the manual should be corrected!
From the relation I've posted after some rearrangements it turns: laplacian(p)=-rho*(d^2(phi)/(d(x_i)d(x_k)))^2 wich is different from the equation that you have posted. Also laplacian(p)=div(phi) is not dimensionally correct! and also: is it possible to define the divergence of a scalar field? nice weekend to you! Roberto |
Hi
I am wondering if we are
Hi
I am wondering if we are chasing something which is not present in the solution. Have found the analytical solution of the potential around a cylinder, and it writes: phi = -u_0 x (1 + R^2 / (x^2 + y^2)) Thus in increases for decreasing x and varies linearly in the farfield of the cylinder. Could it be that the solution is actual for phi and not p? / Niels |
The pressure field shown varie
The pressure field shown varies linearly in the whole field, not only in the farfield. I don't know exactly what is the solution for the potential flow but if it is the one that you write you can write it in polar coordinates as:
phi=-u_o*(1+R^2/r^2) where r^2 is the generical radius far from the cylinder. In this way the potential contours must be concentrical circles around the cylinder... and this is not the case of the field shown. So the pressure field shown is not the potential field... Roberto |
Please note the 'x' after u_0.
Please note the 'x' after u_0.
- Niels |
i missed that parsicular! i've
i missed that parsicular! i've plotted the function you posted and it shows good agreement with the pressure field shown... but why potentialFoam plots the potential field instead of the pressure field?
Roberto |
Did this issue ever get resolved? Both tutorials for potentialFoam seem to give incorrect pressure distributions if you run the simulation with the '-writep' argument. It does seem the pressure field resembles phi more than anything.
|
Also, the field phi is a scalar field - taking divergence of that field seems nonsensical.. What am I missing?
|
Modeling the flow inside an annulus?!
I' am trying to model the behavior of a non newtonian fluid inside an eccentric annulus. I need to get a profile of the annular velocity of the fluid for the whole cross section. I just discovered the OpenFoam and i was wondering if the "nonNewtonianIcoFoam" solver would manage a problem like this? Since i am new in this area any further help or suggestions is appreciated. What should i read to get started? Is there another solver that is more specialized in Annular flow? Will i need a mesh generation program(Boundary conforming grid generator) or Will the Openfoam handle the whole problem?
Really appreciate any help :) |
Quote:
Open you own discussion! |
yeah maybe ur right i am sorry for the disturbance.i just thought since the discussion began with the cylinder example ..that maybe someone would know something about the annular flow between two cylinders...
|
The p in the program has a dimension of m^2/s^2, so it is not simple a pressure. I think it is p/density. Becasue:
p - kg/(ms^2) density - (kg/m^3) p/density=kg/(ms^2)/(kg/m^3)=m^2/s^2 For potential flow, usually we start from solving phi, then get U by differentiation of phi. Then get pressure from Bernolli's equation. The U is correct here, so we could try to get pressure from it. BTW, There is an analyticalFoam folder under the cylinder tutorial folder. Where this output is saved? Cean |
Cean - That's what I ended up doing - since my case had a uniform free stream velocity it was relatively trivial to modify the potentialFoam solver to calculate pressure.
|
Quote:
Does the equation means flux due to pressure change in the cell? |
By phi I really meant potential, sorry for the confusion.
|
Cylindrical boundary condition
Hi
Could you send me your code about cylindrical boundary condition? TANX Joseph |
Hi
Hi
I think that in that file which I have send for you, is a link to cylindrical B.C. Best regards |
mapping a cylinder in OpenFoam
Quote:
Hello Niels, I want to map a cylinder in OpenFoam with the following boundary conditions: n(x,y,t)={n=1, when (x-xt)^2 -(y-yt)^2 <= R^2 n=0, when (x-xt)^2 -(y-yt)^2 > R^2 } where: x,y are the Cartesian coordinate of the computational cell center and xt, yt are the center of the cylinder at time t. R is the radius of the cylinder. It means that the cylinder will be oscillating as n alternate from 0 to 1. I am using OF 4.1. May you advise how i can do that ? I would appreciate! |
Quote:
wmake libso Dear Niels, I have tried to go through this exercises and when i run icoFoam got the following fatal error: --> FOAM FATAL IO ERROR: keyword pFinal is undefined in dictionary "/home/ben/OpenFOAM/ben-4.1/run/visicosity/system/fvSolution.solvers" file: /home/ben/OpenFOAM/ben-4.1/run/visicosity/system/fvSolution.solvers from line 0 to line 38. From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const in file db/dictionary/dictionary.C at line 642. FOAM exiting Can you help to correct that error? I would appreciate your help I would appreciate you support.! |
Quote:
Hello Niels, May you help to know where this program should be written? Indeed I want to map a cylinder on a Cartesian grid and move it with a simple program. I have been advised to learn about vector form programming in Open Foam but i don't know where to start. Thank you! |
Quote:
Solved. Thank you! |
All times are GMT -4. The time now is 01:33. |