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

Source term in a lagrangain solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2022, 12:37
Default Source term in a lagrangain solver
  #1
New Member
 
Shiqi Meng
Join Date: Jun 2021
Posts: 1
Rep Power: 0
Shiqi Meng is on a distinguished road
The EEqn.H is

Code:
    fvScalarMatrix EEqn
    (
        fvm::ddt(rho, he)
      + fvm::div(phi, he,"div(phi,H)")
      + (
            he.name() == "e"
          ? fvc::div
            (
                fvc::absolute(phi/fvc::interpolate(rho), U),
                p(),
                "div(phiv,p)"
            )
          : -dpdt
        )
      - fvm::laplacian(D_H, he)//Alia
     ==
        rho*(U&g)
      + Qdot
      + coalParcels.Sh(he)
      + radiation->Sh(thermo, he)
      + fvOptions(rho, he)
    );
where the return of source term coalParcels.Sh(he) is

Code:
           return
                hsTrans()/Vdt
              - fvm::SuSp(hsCoeff()/(Cp*Vdt), hs)
              + hsCoeff()/(Cp*Vdt)*hs;
the first and third terms are volScalarField, the second one is a fvmScalarMatrix.

How they calculate?
Shiqi Meng is offline   Reply With Quote

Reply

Tags
lagrangain, source term


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
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 16:14.