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

Simplifying equation help

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Tobermory
  • 2 Post By Tobermory

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 17, 2021, 12:51
Default Simplifying equation help
  #1
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
Hello.

I need some guidance with writing equations in my header file.

I am working on electrohydrodynamic (EHD) solver that uses interFoam+electrostatics elements (http://openfoamwiki.net/index.php/Co...ectromagnetics)

As you can see from the above link, the third equation that is the charge conservation equation is written as (the two equations are the same where 1st one is used in the link above and the other one is the same but written using different variables).
Screenshot 2021-02-17 174400.png

In my header file, I have written
Code:
        tmp<fvScalarMatrix> ECDEqn
        (
            fvm::ddt(rhoE) 
          - fvc::laplacian(sgm, Ue)
          + fvm::div(phi, rhoE)
        );

        solve(ECDEqn);
However, I have read an article [1] that simplifies this equation into:Screenshot 2021-02-17 173711.png
where K is equivalent to the previous equation's sigma.

I have tried rewriting my header file equation but only this seems to be working. Is it correct?
Code:
        tmp<fvScalarMatrix> ECDEqn
        (
          fvm::laplacian(sgm, Ue)

        );

        solve(ECDEqn);
I tried many ways including solve(ECDEqn == 0) but was unsuccessful.

Can someone guide me on how to write the simplified equation?

Many thanks


[1] https://iopscience.iop.org/article/1...17/23/1/015004
Attached Images
File Type: png 321859f6e5e148c268a9ea71eff9e8e4.png (1.4 KB, 7 views)

Last edited by mcfdma; February 18, 2021 at 02:45.
mcfdma is offline   Reply With Quote

 

Tags
ehd, ehdfoam, electrospray


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
Solving coupled steady and unsteady equation in OpenFOAM jd87 OpenFOAM Running, Solving & CFD 2 July 22, 2020 11:36
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Some problem of "Qcriterion.mcr& yuyuxuan Tecplot 9 February 12, 2016 03:27
Need help:about energy equation in CFX Stein CFX 4 July 2, 2009 22:31
Diffusion Equation izardy amiruddin Main CFD Forum 2 July 4, 2002 08:14


All times are GMT -4. The time now is 17:41.