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

Fix velocity value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2014, 08:52
Default Fix velocity value
  #1
New Member
 
mike
Join Date: May 2014
Posts: 5
Rep Power: 11
mike_ is on a distinguished road
Hello to the OpenFOAM community.

I'm trying to develop a code to simulate wind turbine without using dynamic mesh.
In my domain i haven't the mesh of the turbine, i use a cube mesh i calculate the forces and applying that in the right point.

I need to fix the velocity value in some point of the domain.

In this point i want to fix the velocity without solving the U equation and i'm not sure that it 's possibile without drawing the geometry in the mesh.

How can i set the value of the velocity?

Thanks,
mike_ is offline   Reply With Quote

Old   June 15, 2018, 06:24
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 43
Rep Power: 16
aerospaceman is on a distinguished road
Did you find a solution/workaround for this? If so, could you please share it?
aerospaceman is offline   Reply With Quote

Old   June 17, 2018, 05:09
Default
  #3
Member
 
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9
hyFoam is on a distinguished road
Hi Mike,


Please have a look here, lines 18 to 61:
https://github.com/vincentcasseau/hy...vEqnInviscid.H

Once you've created your fvMatrix, you can use:

Code:
my_fvMatrix.setValues(removedCellsFromMatrix, valuesToImpose);

where the arguments are defined as follows:



Code:
DynamicList<label> removedCellsFromMatrix; 
DynamicList<scalar> valuesToImpose;

Thanks,

Vincent
hyFoam is offline   Reply With Quote

Reply

Tags
fix velocity point


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NonUniform Velocity Inlet Paolo.F OpenFOAM Pre-Processing 0 March 3, 2014 08:25
Velocity in Porous medium : HELP! HELP! HELP! Kali Sanjay Phoenics 0 November 6, 2006 06:10
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 06:47.