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

Developing a matrix coefficient for a source term and adding a constrain equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2019, 12:38
Default Developing a matrix coefficient for a source term and adding a constrain equation
  #1
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Hello, I want to add a source term to the momentum equation (UEqn). I understand that the source term is usually contained in the matrix UEqn.H but in this case I would like to develop a source term that acts as a constrain equation. The constrain equation is given as:

Code:
\PhiU = Q
where U is the velocity and Q is the flow rate. I will like to develop a matrix coefficient for \Phi and I am wondering how I will go about doing this. The matrix I believe would contain the area of the patch at the boundary. I appreciate any assistance with the question.

Regards
charles.
charles4allme 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
Adding a Source Term to Pressure equation pEqn in SimpleFoam oscar_urri OpenFOAM 11 February 22, 2018 18:52
Energy Equation - Adding source term cfdsolver1 OpenFOAM Running, Solving & CFD 9 February 21, 2018 11:52
Adding a Source Term to an User Defined transport equation rma OpenFOAM Programming & Development 1 January 2, 2017 06:55
Adding implicit source term to momentum equation fs82 OpenFOAM 6 September 23, 2009 04:29
Adding a source term to concervation of species equation bernarde STAR-CCM+ 0 June 4, 2009 04:17


All times are GMT -4. The time now is 00:36.