Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

ERROR: FAILED TO EVALUATE VARIABLE JACOBIAN, Variable: Freq

$
0
0
Hi,

I am getting the following error:

Failed to evaluate variable Jacobian.
- Variable: freq
- Geometry: 1
- Domain: 1 2 3
- Feature: Stationary Solver 2 (sol2/s2);
- Error: Failed to evaluate variable Jacobian.

I perform a frequency domain study (Study 1: Frequency Domain) and I calculate the electric field inside a solar cell (due to the 'light') with an 'Electromagnetic Waves, Frequency Domain (emw)' node.

The divergence of the Poynting vector:

div(S) = (d(emw.Poavx, x)+d(emw.Poavy, y)+d(emw.Poavz, z))

is then used for a second study (Study 2: Step 2: Stationary 2), via a function G = div(S)/hf, where h and f are constants. In the second study the drift-diffusion model for semiconductors is implemented and G is the generation term used in the 'Transport of Diluted Species' reaction term.

WHEN I try to calculate Study 2 I get the previous error. There must be some problem with the expression of div(S). However I can plot div(S) without any problems.

When instead of G = div(S)/hf I use another expression that does not include div(S) the simulation converges.

I have already tried to obtain a smooth electric field (Study 1: Frequency Domain) by selecting a Cubic discretization and very fine mesh (not in the attached model), however I cannot improve the situation.

Do you know how to fix this problem?

Thanks in advance for the comments

Viewing all articles
Browse latest Browse all 26527

Trending Articles