CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

get uniform field

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2011, 10:01
Default get uniform field
  #1
Member
 
Pablo
Join Date: Mar 2009
Posts: 95
Rep Power: 7
pablodecastillo is on a distinguished road
Hello,

How can i get the uniform field for the velocity and save like a global variable??

Thanks
pablodecastillo is offline   Reply With Quote

Old   June 7, 2011, 10:31
Default
  #2
Member
 
Pablo
Join Date: Mar 2009
Posts: 95
Rep Power: 7
pablodecastillo is on a distinguished road
I got with brute force adding scalar freeStream = average(mag(U.boundaryField())); after reading "U" in createFields.

I hope that there is a easy way to get it.
pablodecastillo is offline   Reply With Quote

Old   June 7, 2011, 11:28
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 392
Rep Power: 10
marupio is on a distinguished road
You want to represent a full field of vectors as a single vector? The line you wrote will give you the magnitude of the velocity - you'd lose direction information.
marupio is offline   Reply With Quote

Old   June 7, 2011, 13:34
Default
  #4
Member
 
Pablo
Join Date: Mar 2009
Posts: 95
Rep Power: 7
pablodecastillo is on a distinguished road
That is true, the idea is get the module of the internal field velocity.
pablodecastillo 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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Need help with boundary conditions: open to atmosphere Wolle OpenFOAM 2 April 11, 2011 07:32
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 02:31
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 04:32
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 19:38


All times are GMT -4. The time now is 09:56.