CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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

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

Code:
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];
      solve(fvm::ddt(Amn)+fvm::div(phimn,Amn)==SMN);

      (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

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
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 13:28.