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

Setting velocity profile at the inlet using codedFixedValue

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

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2014, 12:26
Default Setting velocity profile at the inlet using codedFixedValue
  #1
CTR
New Member
 
Charles
Join Date: Apr 2014
Posts: 9
Rep Power: 12
CTR is on a distinguished road
Hi everyone,

I am trying to impose a velocity profile at the inlet of a duct. The velocity profile is dependent on y and z coordinates and the flow is in the x direction. I have attached my 0/U file as well as the error message that I got in a txt file.
I am not really experience with c++, so it is likely that the mistake is in my inlet boundary code. I have been able to run the solver that I wrote with uniform velocity just fine. I don't really understand where the problem is exactly.
I am running OpenFOAM 2.2.2.
Any help would be much appreciated.

Regards,
Charles
Attached Files
File Type: txt output.txt (3.6 KB, 36 views)
File Type: txt U.txt (1.5 KB, 120 views)
CTR is offline   Reply With Quote

Old   May 20, 2014, 12:01
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
I think here is a working example using swakFoam:
http://www.cfd-online.com/Forums/ope...swak4foam.html

I would start with this example and then modify it to use your formulation of the profile.
Z.Q. Niu likes this.
jherb is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply velocity profile at inlet Sam CFX 12 April 1, 2012 06:52
Inlet Velocity Profile BC - Floating Point exception during solution initialization Janshi STAR-CCM+ 4 March 14, 2012 10:21
FSI- Pipe- uniform velocity profile inlet Absy Main CFD Forum 0 April 6, 2010 03:01
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13
inlet velocity profile in Polyflow srinu FLUENT 0 January 16, 2003 20:25


All times are GMT -4. The time now is 02:57.