|
[Sponsors] |
September 4, 2019, 04:39 |
EHD + body force + vectorCodedSource
|
#1 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
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. |
|
May 11, 2021, 10:03 |
Encountered the same problem
|
#2 |
New Member
Haipeng Yang
Join Date: May 2021
Posts: 2
Rep Power: 0 |
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?
|
|
May 17, 2021, 07:32 |
|
#3 | |
New Member
Paulin FERRO
Join Date: May 2021
Location: France
Posts: 21
Rep Power: 5 |
Quote:
Using fvOptions will also add the force in the source term of fvVectorMatrix UEqn. Good luck |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ActuatorDiskExplicitForce in OF2.1. Help | be_inspired | OpenFOAM Programming & Development | 10 | September 14, 2018 12:12 |
rigid body motions- no external force | armin najarian | Main CFD Forum | 1 | July 6, 2016 04:19 |
About body force in UDF | Yanlong Li | Fluent UDF and Scheme Programming | 0 | January 15, 2013 06:28 |
Convergence Problem with body force driven flow | Jinfeng | FLUENT | 1 | December 9, 2009 04:54 |
how to include body force in cfx | selvam R.P | CFX | 4 | November 25, 2005 05:01 |