CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Regarding source UDF of Poisson's equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2022, 12:45
Default Regarding source UDF of Poisson's equation
  #1
New Member
 
Join Date: Jan 2019
Posts: 3
Rep Power: 7
vikku is on a distinguished road
I am solving the fluid flow around a uniformly volumetric charge solid cylinder. For this, I solve Poisson's equation [ 0=(∇^2 𝜀_𝑟 &#120593+𝜌_𝑣/𝜀_0 ]. I defined one user-defined scalar transport equation and it has diffusion term ( (∇^2 𝜀_𝑟 &#120593and source term(𝜌_𝑣/𝜀_0). For source term, I have written UDF as:
#include "udf.h"
#define sigma 90e-6 /* Sigma is volumetric charge */
#define e0 8.854e-12 /* permittivity of free space */
DEFINE_SOURCE (electric_potential, c,t,ds,eqn)
{
real source;
source = (sigma/(e0));
ds[eqn] = 0;
return source;
}

Here, 𝜀_𝑟 is a diffusivity and its value is 1.5 but it is dimensionless. My confusion is in material properties' diffusivity show unit (kg/ms). Therefore how can I balance the unit of diffusion term and source term? Can you give me any idea such that I solve this correctly? Is my written UDF correct or wrong if it is incorrect please guide me in writing the correct UDF for the source term.
Attached Files
File Type: pptx Problem of electric field.pptx (84.3 KB, 1 views)
vikku is offline   Reply With Quote

Reply

Tags
fluent, poisson's equation, source udf


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 04:09
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 13:05.