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

Addition of a New boundry Condition

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 10, 2009, 09:54
Default Addition of a New boundry Condition
  #1
New Member
 
Nadeem
Join Date: Mar 2009
Location: München, Bavarian, Deutschland
Posts: 24
Rep Power: 17
ubaid is on a distinguished road
Hi friends,

I want to introduce a new condition in the file which has the following link.

src/finiteVolum/fileds/fvPatchFields/derived/oscillatingFixedValue

if you go to the file

OscillatinFixedValueFvPatchField.c

you will see that it calculates the frequency value by the following formula

1.0 + amplitude_*
sin(2*mathematicalConstant:i*frequency_*this->db().time().value());
actually i want to introduce the angle theta as a phase angle into the above formula,

I am new into C++, could you guys give me tips how could i proceed it.

Thanks a lot.

Regards
ubaid is offline   Reply With Quote

 


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
unsteady state inlet boundry condition shubham FLUENT 3 March 1, 2009 08:34
boundry condition problem kamal FLUENT 3 June 18, 2008 02:35
How to model a different boundry condition prateek jain CFX 2 May 24, 2007 06:43
wall boundry condition fred FLUENT 0 August 19, 2004 12:10
Temperature rise at a boundry condition Rodrigo FLUENT 5 August 3, 2001 10:04


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