how to set up inlet velocity profile
Hey,
I am setting up a polynomial velocity profile (say, Ux = C1+C2*y+C3*y^2) for a velocity inlet. Any idea for it? Cheers, Raymond |
Hello Raymond,
I am not sure but maybe you can do that with swak4Foam (groovyBC). You may want to look into that. Best, kilroy |
Thanks, Kilroy. Unfortunately, I couldn't find it in the OF version used.
Actually, the question is similar to setting up the inlet velocity profile for fully-dveloped laminar flow. Quote:
|
Hi Raymond,
Have a look at http://www.openfoam.org/version2.1.0...conditions.php the functionality you are looking for, is already available in OF. Cheers L |
Thanks, L. Well, I suppose the polynomial example for scalar variables. Is it also applicable for vector variables like velocity?
Quote:
|
That's a very good question, I have no clue :D
I would say, have a look at the sources and see if that tells you a bit more. Otherwise, I'm pretty sure you can use the codedFixedValue boundary condition but this will be a bit more challenging. Then the groovyBC might be easier to use (never used it myself so can't help you with that). Cheers, L |
Quote:
swak4Foam doesn't come with standard OpenFoam. You need to add it seperately. Please see the link below for details: http://openfoamwiki.net/index.php/Contrib/swak4Foam Best, kilroy |
I made up a parabolic profile for velocity inlet using groovyBC as
Code:
inletL Code:
libs ( "libOpenFOAM.so" "libgroovyBC.so" ); Code:
Create mesh for time = 0 |
Hi Raymond,
OK, the error message says that "boundaryField" is missing. If you look at one of OpenFOAM's tutorial files, such as "incompressible/icoFoam/cavity/0/U", you'll see that the "boundaryField" is the keyword for the list of boundary conditions, as you can examine at this link: https://github.com/OpenFOAM/OpenFOAM...oam/cavity/0/U Therefore, it looks like you somehow has a damaged "U" file, which you must fix, to make it more similar to the ones on OpenFOAM's tutorials. Best regards, Bruno |
Quote:
|
Quote:
Nonetheless, I advise you to do some trial-and-error tests, just to confirm this ;) |
Quote:
|
Quote:
|
groovyBC problems
Hi guys,
it's my first time using groovyBC, and I'm trying to set up an inlet velocity profile according to the following equation u = 2*y + y^2 in the x direction. What I've done is edit the U file to include the following code for the inlet velocity Code:
inlet Code:
libs ("libOpenFOAM.so" Code:
$ #0 Foam::error::printStack(Foam::Ostream&) in "/usr/local/OpenFOAM/OpenFOAM-2.1.1//platforms/linux64GccDPOpt/lib/libOpenFOAM.so" |
Hi
Where dose this profile come from? Try to plot it in a spread sheet tool. It contains negative values and the peak (minimum value) is at y = -1. From the error massage you can see, that the error is not withing your implementation of the profile in groovyBC but within your profile itself. The solver PBiCG can't solve for pressure because of the wired velocity profile. Cheers Fabian |
Quote:
Hello i have been working on a heat conduction problem and i am using groovyBC or providing a temperature profile as an input but it doesnt seem too work. can you help me withb this? Code:
|
Probem with temperature profile
Quote:
i have been working on a solidification/melting problem in which i am supposed to give a gaussian profile as a input heat flux i have written a code for that.but it is not giving me desired profile. can you tell me where is the problem?? Code:
input |
Quote:
|
Quote:
|
Quote:
Code:
24.4 5.89623239154312E-108 I advise you to revise the expression you are trying to use. Perhaps the value "122.5" should be corrected for your own mesh? |
All times are GMT -4. The time now is 00:59. |