CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How do I alter inletOutletFvPatchField to use a refValue calculated w/in the code?

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

LinkBack Thread Tools Display Modes
Old   November 5, 2013, 16:37
Default How do I alter inletOutletFvPatchField to use a refValue calculated w/in the code?
New Member
Tom Chyczewski
Join Date: Mar 2009
Location: Bethpage, New York, USA
Posts: 15
Rep Power: 10
chyczewski is on a distinguished road
I am solving the governing equation within a loop as follows:

for (int m=0; m<mMax; ++m)
   for (int n = 0; n<nMax; ++n)
      (Calculate Smn and phimn and extract Amn from a global A)
      scalar Aeqmn = Aeq[m][n];

      (Update global A with updated Amn)
I copied inletOutletFvPatchField to a new waveInletOutletFvPatchField and have it linked to the code. However, I need some guidance on how to modify it so that, at the inflow boundary cells, instead of applying a reference value read from an input file, it applies a Aeqmn (defined above the call to solve). Any help or reference to similar examples would be appreciated. Thanks.
chyczewski is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
own Code vs. commercial code Bernhard Mueck Main CFD Forum 10 February 16, 2000 11:07
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 15:34
Use of an hydrodynamic model integrated in the vertical by the PHOENICS code Hafsia Zouhaier Main CFD Forum 2 March 15, 1999 09:23
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 11:20

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