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

How to read freestream velocity vector in a new boundary condition?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fumiya

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 5, 2013, 10:49
Default How to read freestream velocity vector in a new boundary condition?
  #1
Member
 
Roberto Pieri
Join Date: Feb 2012
Location: Milan
Posts: 57
Rep Power: 14
robyTKD is on a distinguished road
Hi to everyone,

I would like to build a new boundary condition for adjointShapeOptimizationFoam.
I need to read the freestream velocity vector (which I named U_inf); my ideas to do this are:
  1. adding U_inf in the transportProperties dictionary and reading from it;
  2. defining a new dictionary and reading the vector from this new dictionary;
  3. reading the velocity from the inlet patch.

Which of these ones is the best? How can I implement it?

Attached below you find the file.

Thank you
Roberto
Attached Files
File Type: c adjointCdWallVelocityFvPatchVectorField.C (3.5 KB, 27 views)
robyTKD is offline   Reply With Quote

 

Tags
adjointshapeoptimization, boundary condition


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
Freestream boundary condition YJ Lee OpenFOAM Running, Solving & CFD 14 June 5, 2020 02:54
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
Massflow or average velocity boundary condition Sideshore OpenFOAM Pre-Processing 6 September 27, 2016 15:09
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
velocity boundary condition Logan Page OpenFOAM 0 November 19, 2010 17:59


All times are GMT -4. The time now is 15:58.