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

Is MULES the right choice for modified transport equation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2019, 05:05
Question Is MULES the right choice for modified transport equation?
  #1
New Member
 
Elisabeth Diehl
Join Date: Jun 2019
Posts: 8
Rep Power: 6
elsebaer is on a distinguished road
Hi everybody,
I want to solve the following modified transport equation for the calculation of sensitivities:

\frac{\partial}{\partial t} (\delta \alpha) + \nabla \cdot (\vec{u} \ \delta \alpha) + \nabla \cdot (\delta \vec{u} \ \alpha)

Within interFoam, I implemented the the following code right after solving alphaEqn.H (along with initial fields dAlpha and dU, calculation of dPhi and other modifications):

Code:
{
    word dAlphaScheme("div(phi,dAlpha)");
    word dPhiScheme("div(dPhi,alpha)");
    
    #include "alphaSuSp.H"
    
    surfaceScalarField dAlphaPhi
    (
    fvc::flux(phi, dAlpha, dAlphaScheme)
    + fvc::flux(dPhi, alpha1, dPhiScheme)
    );
    
    MULES::explicitSolve
    (
    geometricOneField(),
    dAlpha,
    dAlphaPhi,
    Sp,
    Su
    );
}
It works, but I'm not sure if MULES::explicitSolve is the right way to solve this equation. After a few time steps the solution smears heavily. What would you recommend?



elsebaer is offline   Reply With Quote

Reply

Tags
mules, sensitivities, transport equation


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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
Boundary conditions for a newly added transport equation Divyaprakash OpenFOAM Running, Solving & CFD 0 May 2, 2016 05:32
turbulent diffusion term in transport equation for additional variables Raijin Thunderkeg CFX 2 May 17, 2014 22:53
One transport equation, two user-defined scalar, can it be solved? sharonyue FLUENT 0 April 1, 2014 22:18
error message cuteapathy CFX 14 March 20, 2012 06:45


All times are GMT -4. The time now is 07:40.