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

Nonlinear Transient Term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2019, 17:35
Default Nonlinear Transient Term
  #1
New Member
 
Bruno
Join Date: Jul 2018
Posts: 6
Rep Power: 8
Onurb is on a distinguished road
Hello,

I would like to solve one equations system as follows:

\frac{\partial \phi_1}{\partial t} + \nabla \cdot (\textbf{v} \phi_1 ) = 0 (Eq. 1)

\frac{\partial (\phi_1 \phi_2 + f(\phi_2))}{\partial t} + \nabla \cdot (\textbf{v} \phi_2 ) = 0 (Eq. 2)

where f(\phi_1) is a nonlinear function (e.g. f(\phi_2) = \phi_2 e^{\phi_2}).

How may I implement this system in the OpenFOAM. My main problem is handling the nonlinear term. Can I write this piece of code:

Solve ( fvm::ddt(phi_1) + fvc::div(v,phi_1) );

Solve ( fvm::ddt(phi_1*phi_2+f(phi_2)) + fvc::div(v,phi_2) ); or Solve ( fvm::ddt(phi_1*phi_2) + fvm::ddt(f(phi_2)) + fvc::div(v,phi_2) );

I assumed the velocity field is known. Thanks in advance.
Onurb is offline   Reply With Quote

Reply

Tags
implementing new solver, nonlinear terms, system coupling


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
viscosity term in discetrization momentum equation hans-186 Main CFD Forum 4 April 1, 2013 14:34
How to define a transient species source term? aleisia FLUENT 3 March 7, 2011 23:58
Large source term in species equation MACFD FLUENT 4 January 4, 2011 15:16
Transient term discretisation scheme Batis CFX 2 August 23, 2010 21:17
bouyancy term in epsilon equation Michael Main CFD Forum 1 June 25, 1999 11:20


All times are GMT -4. The time now is 15:44.