- Curriculum vitae
- Publications
- CFD
- Numerical methods for dense gas-particle flows
- CFD codes for multiphase flow applications
- Quadrature-based uncertainty quantification
- Frictional models for dense gas-particle flows
- Large eddy simulation models
- Quadrature-based moment methods for gas-particle flows
- Tools for quadrature-based methods
- GeekoCFD
- Contacts
- About
albertopassalacqua.com











Thanks a lot! This kind of tutorial really speed up my work, and of course help spreading openFoam.
Ciao!
Thank you for such useful article!
In addition I want to say about periodic boundary condition.
Simply, if you want to get a periodic profile at boundary, you should set “outOfBounds repeat” and enjoy!
(It exactly works on OpenFOAM 3.3-cvs)
P.S. Of course, I mean periodicity in time
Thanks!
I wonder if this can be done to a total pressure BC.
I this so, if you modify the totalPressure BC to read the values of the total pressure, as done in the unsteady boundary.
But how would you change it here, for example?
For me, it seems to work only when you specify field (uniform fixed) value.
type totalPressure;
p0 uniform 95200.0;
U U;
phi phi;
rho rho;
psi none;
gamma 1.4;
value uniform 95200.0;
Hi,
the existing unsteady boundary conditions works only for fixed values. What I meant is that you need to create a new BC which mixes the two. In other words, you need to code your unsteady total pressure boundary condition using the two existing one as starting point.
Best,
Alberto
[...] Check that out: http://albertopassalacqua.com/?p=69 [...]
[...] it in order to get a variable inlet velocity in the dahl case, following alberto's instructions (http://albertopassalacqua.com/?p=69), and I get the next error message: Starting time loop Time = 0.1 Courant Number mean: 0.0163852 [...]
Thanks for this work
I am looking the possibility to give velocity Input as a vectors of values. is it possible ?
for example I have a circular input and I want more velocity in the bottom then the upper part of circular region .. how can I do that ??
Hello, if I understand your question correctly, you want to specify a non-uniform boundary condition. To do that there are many ways. You can either use one of the utilities provided by Bernhard on the OpenFoam Wiki (search for funkySetField and groovyBC), or write a small piece of code that initializes the patch corresponding to your boundary condition. If you have a simple initialization, life for example two values of the velocity, one for the top and the other for the bottom, you can simply initialize those values in the whole domain, and use the $internalField macro (see OpenFOAM user’s guide for details and examples).
I want to print out the boundary conditions. How can I do that ? What should I change in the solvers or utilities?
thanks
What do you mean with printing out the BC’s? They are stored in the file corresponding to the field in each time directory, and you can export data on the plane of each BC using paraview or sample.
Best,
Alberto
[...] I don't think it is the best solution to your problem, but might be the only one. Generate input, i.e. using your own code, and plug it inside input library: http://albertopassalacqua.com/?p=69 [...]
[...] Also, you can try to use the type timeVaryingUniformFixedValue;. Take a look here: http://albertopassalacqua.com/?p=69 [...]
[...] so the easiest way is described by alberto on his home page: http://albertopassalacqua.com/?p=69 or you could use the groovyBC: http://openfoamwiki.net/index.php/Contrib_groovyBC I personaly [...]
Great stuff Alberto! Except I’m having a bit of trouble running it. I get the following error message
when I run the solver (Piso or Pimple)… any idea what went wrong with my new inlet condition? The set-up was exactly as above.
–> FOAM FATAL IO ERROR:
keyword inlet is undefined in dictionary “/Users/greggivogue/Documents/openfoam-work/run/tutorials/incompressible/simpleFoam/VISN008Gregnu1point5Ramp/0/U::boundaryField”
file: /Users/greggivogue/Documents/openfoam-work/run/tutorials/incompressible/simpleFoam/VISN008Gregnu1point5Ramp/0/U::boundaryField from line 27 to line 45.
From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 456.
FOAM exiting
You have a boundary condition called “inlet” in your mesh, which is not defined in your 0/U file.
Hi, i hope that you are well
how can one define a function for velocity at the inlet BC’s?
The easy way is to use groovyBC, which is part of swak4Foam.
Hi alberto, tanx for your reply
another my question is how to define a function to move one boudary, for example:
i work on Vertical Axis Wind Turbine and i simulate it with fixed blade that rotated around shaft, now i wanna move each blades a round its axis under difinition function, would you tell me how do it?
(i used GGI for simulating it)
tnx alot
______
Rasoul
Thank you very much, it really helped me.
[...] yes you can. If you want more info about how use unsteady BC, have a look here http://albertopassalacqua.com/?p=69 (thanks to Alberto Passalacqua). best [...]
hello! I have a question.I do as you writed in the blog, but why is there the information “Cannot find ‘value’ entry on patch**(Actual type timeVaryingUniformFixedValue) Please add the ‘value’ entry to the write function of the user-defined boundary-condition ”
and below is my boudaryfield:
”
JINJILINGBRIDGE
{
type timeVaryingUniformFixedValue;
fileName “zetaBcJinjiling”;
outOfBounds clamp;
}
“
Hi Danfy,
as the name suggests, the timeVaryingUniformFixedValue is derived from the fixedValue BC, which requires a “value” entry. You have then to specify it, even though the specified value won’t be used.