CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Normal component of velocity in groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 05:51
Question Normal component of velocity in groovyBC
  #1
New Member
 
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11
SirIsaac90 is on a distinguished road
Hi Foamers!

I am struggling with with a pressure BC with groovyBC.

I want to define a groovyTotalPressure where p0Expression looks as follows:
Code:
p0Expression    "(U*normal() > 0) && (p < 99500) ? base - (mag(U)*a_max + b_max*mag(U)*mag(U)) : 99500";
Unfortunately, it does not work with the "normal()" multiplier. How to get the normal component of the velocities on a patch? Where is my fault?

I would be pleased if anyone can help me!

Regards
JW
SirIsaac90 is offline   Reply With Quote

Old   July 14, 2016, 04:43
Thumbs up
  #2
New Member
 
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11
SirIsaac90 is on a distinguished road
Hi!

Problem is already solved.
I did it with

U&normal().


At least it gave me the correct results.

Regards,
JW
SirIsaac90 is offline   Reply With Quote

Reply


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Velocity component averaging in ParaView jet_engine OpenFOAM Running, Solving & CFD 1 June 20, 2016 08:05
[swak4Foam] Set surface normal manually in groovyBC Mitchell Baum OpenFOAM Community Contributions 1 March 15, 2016 01:25
Surface normal velocity BC with zero gradient tangential, cylinder c_dowd OpenFOAM Running, Solving & CFD 0 May 25, 2013 08:22
Convergency y component velocity aryan Main CFD Forum 0 February 18, 2013 08:42


All times are GMT -4. The time now is 08:28.