|
[Sponsors] |
Wrong values next to a surface with stepwise property function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 17, 2015, 11:01 |
Wrong values next to a surface with stepwise property function
|
#1 |
New Member
Marcel Bornstein
Join Date: Feb 2015
Location: Bonn
Posts: 3
Rep Power: 11 |
Dear Foamers,
i'm working with a simple steadystate-solver for calculating the current density within a conductor. The solved equation is fvm::laplacian(sigma,V),where V is the electrostatic potential and sigma is the conductivity. The current density J is simply calculated by J=sigma*(-fvc::grad(V)). In principle the solver works fine but in the case of an 1-dimensional resistor a problem appears at the cells next to a surface with a step in sigma, which can be seen in the attached picture below. The highlighted cellvalues correspond to the calculated current density, which should be homogenous over the whole volume. I think this problem comes from a missing boundary condition at this surface, which should be something like this: n * (J_a-J_b)=0, where n is the surface normal vector and J_a, J_b the current densities of both sides to the surface. Actually i have no idea how to set this boundary condition, because it is not a static value or gradient. Could someone give me a hint to this problem? Cheers Marcel wrongJ.jpg |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Probes function gives different values than ParaView | Bazinga | ParaView | 4 | November 29, 2017 14:59 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 11:51 |
surface tension gradient using UDF; surface tension gradient as function of temperatu | marimuthusundar | Fluent UDF and Scheme Programming | 0 | June 21, 2012 05:48 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |