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

Wrong values next to a surface with stepwise property function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2015, 11:01
Default 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
Siegunn is on a distinguished road
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
Siegunn 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
[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


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