Page 1 of 1

fatal element size

Posted: 10 Nov 2021, 06:10
by spacedout
Hi

I just happen to have a few linear wedge elements in my mesh (element code 706). Therefore Function ElementSize of file ElementDescription.F90

will round off 706/100 to 7 for the family integer in the select statement. However 7 is not one of the cases for that select resulting in a
default fatal call which prints:

ERROR:: ElementSize: Not implemented for elementtype

Not sure if it is a bug. Perhaps detJ (or size) is undefined for a wedge but I dont see why that should be so.

Thanks in advance for reading this post

Re: fatal element size

Posted: 10 Nov 2021, 11:17
by raback
Thanx for reporting! This is now fixed in devel. -Peter

Re: fatal element size

Posted: 11 Nov 2021, 20:12
by spacedout
It works ! But later in the program execution I now get

ERROR:: ElementInfo: Bubbles for element: 706 are not implemented.
ERROR:: ElementInfo: Please use p-element basis instead.

which is printed out in file ElementDescription.F90 at the end of function ElementInfo in the section concerned with the generation of bubble basis functions (cases 6 and 7 are not implemented)

I dont know how tedious it is to add code for these cases. One easy way out of course is to set Bubbles to False in the SIF.

Re: fatal element size

Posted: 12 Nov 2021, 15:13
by raback
Hi, can you share the solver settings that is causing this. I guess there is a way to use p-bubbles instead depending on solver. -Peter

Re: fatal element size

Posted: 12 Nov 2021, 23:09
by spacedout
Sure, no problem:

Solver 9
Equation = electron density
Procedure = "AdvectionDiffusion" "AdvectionDiffusionSolver"
Variable = Ne
Exec Solver = Always
Stabilize = False
Bubbles = True
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear Post Solvers = 10
Nonlinear System Convergence Tolerance = 1.0e-8
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative

Linear System Iterative Method = BiCGStab

Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-8
Linear System Preconditioning = ILU1
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End

Re: fatal element size

Posted: 13 Nov 2021, 02:16
by raback
Hi

How would this work for you?

Code: Select all

Stabilize = True
Bubbles = False
-Peter

Re: fatal element size

Posted: 13 Nov 2021, 22:33
by spacedout
As expected there are no errors showing.

The only reason I was using

Stabilize = False
Bubbles = True

is because it is written in the Keywords section of the Advection Diffusion Equation under the Elmer Models Manual that

"It is more accurate and does not include any ad hoc terms. However, it may be computationally more expensive."

So I was aiming for more accuracy in spite of the fact there could be more number crunching involved. And I avoided ad hoc terms according to the above quote.

Re: fatal element size

Posted: 15 Nov 2021, 12:46
by raback
Hi

I would not be too worried using stabilization. The "ad hoc" is maybe an overstatament. Basically the value for stabilization coefficient is well founded but the fact that the term is just single value implicitely assumes that aspect ratios in elements is close to one. The two methods usually give very similar results.

-Peter