CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Velocity profile

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 29, 2006, 06:30
Default Is it possible with these line
  #21
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 9
anja is on a distinguished road
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
anja is offline   Reply With Quote

Old   March 29, 2006, 06:50
Default There is almost always a bette
  #22
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 13
eugene is on a distinguished road
There is almost always a better way to do things in OF.

scalarField d = mag(mesh.C() - Cp);
eugene is offline   Reply With Quote

Old   March 30, 2006, 06:16
Default Hi, Thanks, it seems to wor
  #23
Member
 
Anja Stretz
Join Date: Mar 2009
Posts: 92
Rep Power: 9
anja is on a distinguished road
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
anja is offline   Reply With Quote

Old   December 21, 2006, 11:29
Default Hi fabian when i used your
  #24
New Member
 
morteza mirsaeedi
Join Date: Mar 2009
Posts: 6
Rep Power: 9
mirsaeedi is on a distinguished road
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.
mirsaeedi is offline   Reply With Quote

Old   December 21, 2006, 11:43
Default I have another question? I
  #25
New Member
 
morteza mirsaeedi
Join Date: Mar 2009
Posts: 6
Rep Power: 9
mirsaeedi is on a distinguished road
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
mirsaeedi is offline   Reply With Quote

Old   May 6, 2010, 08:31
Default Velocity inlet profile
  #26
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 8
aldo.iannetti is on a distinguished road
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:
Originally Posted by francois View Post
Thank you Hrvoje for this precision !

I will try to make a utility that reads a file with an inlet velocity profile in it and interpolate it on the mesh.

In your previous mail you mentioned a class that can do interpolation for profiles:

src/sampling/interpolateXY/interpolateXY.H

I will try to use it for my utility.

Thank's for taking some of your time to answer questions from newbies !

Francois
aldo.iannetti is offline   Reply With Quote

Old   May 11, 2010, 11:09
Default
  #27
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 14
maddalena is on a distinguished road
Quote:
Originally Posted by aldo.iannetti View Post
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
Hello Aldo and welcome!
Search for the timeVaryingMappedFixedValue boundary condition, it can do what you are looking for.
Enjoy,

mad
maddalena is offline   Reply With Quote

Old   May 11, 2010, 12:04
Default
  #28
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 8
aldo.iannetti is on a distinguished road
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

Quote:
Originally Posted by maddalena View Post
Hello Aldo and welcome!
Search for the timeVaryingMappedFixedValue boundary condition, it can do what you are looking for.
Enjoy,

mad
aldo.iannetti is offline   Reply With Quote

Old   May 11, 2010, 15:38
Default
  #29
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 14
maddalena is on a distinguished road
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
maddalena is offline   Reply With Quote

Old   September 7, 2010, 21:04
Question
  #30
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 9
maysmech is on a distinguished road
Dear Foamers,
I need to define Driver and Seegmiller velocity inlet profile for backward facing step.
How can i write it in 0/U flie?
maysmech is offline   Reply With Quote

Old   April 5, 2011, 13:47
Default use results from old case
  #31
Member
 
yu
Join Date: Nov 2010
Posts: 39
Rep Power: 7
xiyuqiu is on a distinguished road
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?
xiyuqiu is offline   Reply With Quote

Old   April 6, 2011, 02:56
Default
  #32
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 14
maddalena is on a distinguished road
Quote:
Originally Posted by xiyuqiu View Post
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?
Of course it is!

mad
maddalena is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Velocity profile John CFX 0 October 14, 2008 06:47
Velocity profile as an velocity intlet condition kees FLUENT 3 April 16, 2008 18:35
velocity profile as an velocity inlet condition KEES Main CFD Forum 0 April 15, 2008 11:26
velocity profile nabeel FLUENT 0 June 27, 2006 05:32
particle velocity and velocity profile HGG FLUENT 2 June 10, 2001 16:32


All times are GMT -4. The time now is 04:16.