This is Yuncheng.
I want to use elmer to calculate magnectic field and start from the tutorial of horseshoe.
I follow the userguide but the B vector output all are 0.
The OS is ubuntu 12.04 LTS and the elmer Library is version: 7.0 (Rev: 6506).
I use gmsh to do the meshing by
$gmsh horseshoe.geo -3 -order 2 > loggmsh_hs
then use ElmerGrid to proceed the meshing file
$ElmerGrid 14 2 horseshoe.msh -autoclean > loggrid_hs
and at last do the calculation by ElmerSolver
$ElmerSolver horseshoe.sif > logsolver_hs
All the processes go on well without error.
However, the output of B vector all are 0 as list in the file of horseshoe.ep.
I think some setting in horseshoe.sif might be not right, as partly shown below:
Code: Select all
! horseshoe.sif
!
! ElmerSolver input file for horseshoe permerment magnet
!
!
Check Keywords Warn
Header
Mesh DB "." "horseshoe"
End
Simulation
Max Output Level = 5
Coordinate System = Cartesian
Coordinate Mapping(3) = 1 2 3
Simulation Type = Steady state
Steady State Max Iterations = 1
Output Intervals = 1
Timestepping Method = BDF
BDF Order = 1
Solver Input File = horseshoe.sif
Post File = horseshoe.ep
Output File = "horseshoe.result"
End
... (skip)
Solver 1
Equation = MgDyn2D
Procedure = "MagnetoDynamics2D" "MagnetoDynamics2D"
Variable = -dofs 1 Az
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-7
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-10
Linear System Preconditioning = ILU0
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Solver 2
Equation = MgDyn2DPost
Procedure = "MagnetoDynamics2D" "BSolver"
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-7
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-10
Linear System Preconditioning = ILU0
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
horseshoe.geo, horseshoe.sif and part of the horseshoe.ep (full file exceed 1M ) for more detailed information.
I'd much appriciate of your hlep.
Best regards,
Yuncheng