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

EHD + body force + vectorCodedSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2019, 03:39
Default EHD + body force + vectorCodedSource
  #1
Member
 
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7
Pavithra is on a distinguished road
Hello Everyone,

I am developing a solver for Electrohydrodynamics by modifying the PimpleFoam. I need to add a body force term to the momentum equation. I have calculated the body force (F) in a file called mySource.H.

The body force is the Coulomb force calculated by solving the potential equation and charge density equation.

I tried adding the body force to the momentum equation in UEqn.H as follows:

Code:
    
fvVectorMatrix UEqn
    (
        fvm::ddt(U) + fvm::div(phi, U)
      + MRF.DDt(U)
      + turbulence->divDevReff(U)
     ==
        fvOptions(U)
    + F
    );

I tried to validate the solver. The solver produces very accurate results that match with the literature when symmetry and periodic boundary conditions are applied on the lateral walls of the cavity. But when rigid walls are used the solver produces very strange results.

Any hints on the strange behavior while using rigid walls will be very helpful.

Also, I read in a thread that adding the source term to UEqn directly leads to poor numerical stability. Thus, I am trying to add the source using fvOptions. Could someone please give me a direction on how to use the vectorCodedSource fvOptions to add the body force.

My body force F is volVectorField.

Thank You.
Pavithra is offline   Reply With Quote

Old   May 11, 2021, 09:03
Default Encountered the same problem
  #2
YHP
New Member
 
Haipeng Yang
Join Date: May 2021
Posts: 2
Rep Power: 0
YHP is on a distinguished road
Hello, has your problem been solved? I added electrical strength to UEqn, and encountered a situation similar to yours when solving. If your problem is solved, can you tell me the solution?
YHP is offline   Reply With Quote

Old   May 17, 2021, 06:32
Default
  #3
New Member
 
Paulin FERRO
Join Date: May 2021
Location: France
Posts: 21
Rep Power: 4
pferro is on a distinguished road
Quote:
Originally Posted by Pavithra View Post
Hello Everyone,

I am developing a solver for Electrohydrodynamics by modifying the PimpleFoam. I need to add a body force term to the momentum equation. I have calculated the body force (F) in a file called mySource.H.

The body force is the Coulomb force calculated by solving the potential equation and charge density equation.

I tried adding the body force to the momentum equation in UEqn.H as follows:

Code:
    
fvVectorMatrix UEqn
    (
        fvm::ddt(U) + fvm::div(phi, U)
      + MRF.DDt(U)
      + turbulence->divDevReff(U)
     ==
        fvOptions(U)
    + F
    );

I tried to validate the solver. The solver produces very accurate results that match with the literature when symmetry and periodic boundary conditions are applied on the lateral walls of the cavity. But when rigid walls are used the solver produces very strange results.

Any hints on the strange behavior while using rigid walls will be very helpful.

Also, I read in a thread that adding the source term to UEqn directly leads to poor numerical stability. Thus, I am trying to add the source using fvOptions. Could someone please give me a direction on how to use the vectorCodedSource fvOptions to add the body force.

My body force F is volVectorField.

Thank You.
Hello,

Using fvOptions will also add the force in the source term of fvVectorMatrix UEqn.

Good luck
pferro 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
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 11:12
rigid body motions- no external force armin najarian Main CFD Forum 1 July 6, 2016 03:19
About body force in UDF Yanlong Li Fluent UDF and Scheme Programming 0 January 15, 2013 05:28
Convergence Problem with body force driven flow Jinfeng FLUENT 1 December 9, 2009 03:54
how to include body force in cfx selvam R.P CFX 4 November 25, 2005 04:01


All times are GMT -4. The time now is 10:02.