Commit d0b17fc2 authored by asantosnet's avatar asantosnet
Browse files

IMPORTANT -> Fixed sign error in the capacitance matrix. It caused the solver...

IMPORTANT -> Fixed sign error in the capacitance matrix. It caused the solver to inverte the sign in the potential
parent 1e18f079
......@@ -408,16 +408,17 @@ def prepare_capacitance_sparse(points_firstneig, dielectric_val,
/ (dielectric_val[point]
+ dielectric_val[fneig]))
data[element_id] = (ridges_capacitance[ridge]
* dielectric_factor)
data[element_id] = -1 * (ridges_capacitance[ridge]
* dielectric_factor)
diag_data = (diag_data + data[element_id])
# Diagonal elements don't have the minus sign.
diag_data = (diag_data + (-1 * data[element_id]))
element_id +=1
column[element_id] = point
row[element_id] = point
data[element_id] = - diag_data
data[element_id] = diag_data
element_id +=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment