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

Coded BC: parabolic inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2014, 05:19
Default Coded BC: parabolic inlet
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Dear Foamers,

I am trying to insert a coded BC in my U-BC-file.

What I wanna do is to provide a parabolic inlet to my problem.

I do something like:

Code:
inlet
{
		type codedFixedValue; 
		value uniform (0 -1 0); 
		redirectType parabolicInlet; 
		code 
		#{ 
		variables		"Vm=2;yp=pos().y;zp=pos().z+0.005;h=-max(pts().z);a=-Vm/(h*h);b=Vm;";
		fractionExpression	"1"; 
                valueExpression		"vector(a*((yp*yp)+(zp*zp))+b,0,0)";
			
		#};
}
This does not work.

Any idea about how to solve this?

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   May 16, 2014, 05:25
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14
ahmmedshakil is on a distinguished road
Have you tried with the groovyBC ? If not then I guess it can serve your demand easily.
ahmmedshakil is offline   Reply With Quote

Old   May 16, 2014, 05:28
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Actually,

the point is that - if I am not wrong - groovyBC goes along with swak4Foam and I am running a simulation on a PC where I can not compile swak4Foam, that's why I was trying to use the codedFixedValue. I think it should be able to do what I mean, isn't it?
samiam1000 is offline   Reply With Quote

Old   June 10, 2014, 01:33
Default
  #4
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Are you able to solve?
Tushar@cfd 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
Parabolic inlet velocity profile msrinath80 OpenFOAM Running, Solving & CFD 157 February 6, 2020 05:13
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 10:36
How can I fix a local coordinate system to the inlet phys-zephyr STAR-CCM+ 3 May 8, 2014 05:46
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42
Parabolic Velocity Inlet selim CFX 3 October 28, 2007 01:55


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