|
[Sponsors] |
March 29, 2006, 07:30 |
Is it possible with these line
|
#21 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17 |
Is it possible with these lines:
scalar dx = x - Cp*vector(1,0,0); scalar dy = y - Cp*vector(0,1,0); scalar dz = z - Cp*vector(0,0,1); scalar d = sqrt(dx*dx+dy*dy+dz*dz); to find the distance of each each cell to the centre of the inlet? Or is this basically not the way to do that? Thanks Anja |
|
March 29, 2006, 07:50 |
There is almost always a bette
|
#22 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
There is almost always a better way to do things in OF.
scalarField d = mag(mesh.C() - Cp); |
|
March 30, 2006, 07:16 |
Hi,
Thanks, it seems to wor
|
#23 |
Member
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 17 |
Hi,
Thanks, it seems to work, or at least there was no error reported while compiling. The problem is that I can't use my application yet. When I try the way Fabian was describing: Usage: ssimpleFoam <root> <case> [-parallel] ERROR: wrong number of arguments, expected 2 found 3 So what do I have to do that I can use my velocity profil for an inlet? Thanks Anja |
|
December 21, 2006, 11:29 |
Hi fabian
when i used your
|
#24 |
New Member
morteza mirsaeedi
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
Hi fabian
when i used your ssimpleFoam and wmake it i recieved below error: Foam::error::printStack(Foam:stream&) Foam::error::abort() Foam::operator+(Foam::dimensionSet const&, Foam::dimensionSet const&) Foam::tmp<foam::geometricfield<double,> > Foam::operator+<double,>(Foam::tmp<foam::geometric field<double,> > const&, Foam::tmp<foam::geometricfield<double,> > const&) mySpecialFoam [0x80c551b] mySpecialFoam [0x805b769] __libc_start_main __gxx_personality_v0 Aborted i think it is from line " scalarField y=centre.component(vector::Y);" Do you have any suggestion? Thanx Misaeedi. |
|
December 21, 2006, 11:43 |
I have another question?
I
|
#25 |
New Member
morteza mirsaeedi
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
I have another question?
I can not register in workshop of openfoam and i am new with openfoam and c++. My MSC thesis is about solving Supercavitation phenomena with LES method. is openFoam an apropriate tool to do this thesis?if it is, can i learn openfoam and it's programming on myself. ofcourse i have read the Userguide and programmer's Guide but i think it is not suffiecient for me and my thesis. thanks Morteza |
|
May 6, 2010, 09:31 |
Velocity inlet profile
|
#26 | |
Member
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16 |
Hi
I need to use (in my OF 1.6) a velocity profile coming from an external file (reading and interpolate points) Is there a tool already implemented in my version? (I'm a new user) Thanks Quote:
|
||
May 11, 2010, 12:09 |
|
#27 | |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Quote:
Search for the timeVaryingMappedFixedValue boundary condition, it can do what you are looking for. Enjoy, mad |
||
May 11, 2010, 13:04 |
|
#28 |
Member
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16 |
Hi Mad and thanks,
Correct me if I'm wrong,timeVaryingMappedFixedValue is for transient bc, I need a spatial varing bc in a way that depends on a spatial interpolation of a number of points given by the user trough an external .dat file. Do you mean I can use timeVaryingMappedFixedValue modifying it? How? Aldo |
|
May 11, 2010, 16:38 |
|
#29 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Well,
you can use timeVaryingMappedFixedValue with only one sample time, thus it is not time varying! What I usually do is sample data from a OF converged case on an OF format file, adjust their position manually and apply timeVaryingMappedFixedValue bc for velocity in a different case (a subcase). However, I guess it can be used with tests sample data in the same way... Hope it helps, cheers, mad |
|
April 5, 2011, 14:47 |
use results from old case
|
#31 |
Member
yu
Join Date: Nov 2010
Posts: 39
Rep Power: 16 |
Hello, is it possible to generate a velocity profile by simply running a development flow case and use the result for the new case's initial condition?
|
|
April 6, 2011, 03:56 |
|
#32 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Velocity profile | John | CFX | 0 | October 14, 2008 07:47 |
Velocity profile as an velocity intlet condition | kees | FLUENT | 3 | April 16, 2008 19:35 |
velocity profile as an velocity inlet condition | KEES | Main CFD Forum | 0 | April 15, 2008 12:26 |
velocity profile | nabeel | FLUENT | 0 | June 27, 2006 06:32 |
particle velocity and velocity profile | HGG | FLUENT | 2 | June 10, 2001 17:32 |