|
[Sponsors] |
December 8, 2022, 12:45 |
Regarding source UDF of Poisson's equation
|
#1 |
New Member
Join Date: Jan 2019
Posts: 3
Rep Power: 7 |
I am solving the fluid flow around a uniformly volumetric charge solid cylinder. For this, I solve Poisson's equation [ 0=(∇^2 𝜀_𝑟 𝜑+𝜌_𝑣/𝜀_0 ]. I defined one user-defined scalar transport equation and it has diffusion term ( (∇^2 𝜀_𝑟 𝜑and 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. |
|
Tags |
fluent, poisson's equation, source udf |
|
|
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 |