i try a simple example with two cylinders (see attachment freecad_cylinder screenshot)
center cylinder is in copper with potential of 1V and external cylinder is in glass. The external surface is at the potential of 0V.
Inspired by https://github.com/FreeCAD/FreeCAD/tree ... mexamples/ I have created :
- booleanfragments (compSolid mode) with a compound filter (window-volume filter).
- solid material copper associate to the internal cylinder
- solid material glass to the external cylinder
but when i run elmer solver i have the error : ERROR:: ReadTargetNames: Mapping of name is not unique: solid2
if anybody have an idea of the problem ?
here the elmer log :
Code: Select all
Executing solver...
ELMER SOLVER (v 9.0) STARTED AT: 2023/05/16 16:31:08
ParCommInit: Initialize #PEs: 1
MAIN: OMP_NUM_THREADS not set. Using only 1 thread per task.
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: 40e221719, Compiled: 2023-05-05)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: MUMPS library linked in.
MAIN: Lua interpreter linked in.
MAIN: =============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: case.sif
LoadInputFile: Scanning input file: case.sif
LoadInputFile: Scanning only size info
LoadInputFile: First time visiting
LoadInputFile: Reading base load of sif file
LoadInputFile: Loading input file: case.sif
LoadInputFile: Reading base load of sif file
CheckKeyword: Unlisted keyword: [potential constant] in section: [boundary condition 1]
LoadInputFile: Number of BCs: 2
LoadInputFile: Number of Body Forces: 0
LoadInputFile: Number of Initial Conditions: 0
LoadInputFile: Number of Materials: 1
LoadInputFile: Number of Equations: 2
LoadInputFile: Number of Solvers: 2
LoadInputFile: Number of Bodies: 2
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by area
ListTagKeywords: Setting weight for keywords!
ListTagKeywords: No parameters width suffix: normalize by volume
Loading user function library: [StatElecSolve]...[StatElecSolver_Init0]
Loading user function library: [ResultOutputSolve]...[ResultOutputSolver_Init0]
LoadMesh: Loading serial mesh!
ElmerAsciiMesh: Performing step: 1
ElmerAsciiMesh: Base mesh name: .
ReadHeaderFile: Reading header info from file: ./mesh.header
InitializeMesh: Number of nodes in mesh: 24342
InitializeMesh: Number of bulk elements in mesh: 15948
InitializeMesh: Number of boundary elements in mesh: 4268
InitializeMesh: Initial number of max element nodes: 10
ElmerAsciiMesh: Performing step: 2
ReadNodesFile: Reading nodes from file: ./mesh.nodes
MapCoordinates: Performing coordinate mapping
SetMeshDimension: Dimension of mesh is: 3
SetMeshDimension: Max dimension of mesh is: 3
MapCoordinates: Scaling coordinates: 1.000E-03 1.000E-03 1.000E-03
ElmerAsciiMesh: Performing step: 3
ReadElementsFile: Reading bulk elements from file: ./mesh.elements
ElmerAsciiMesh: Performing step: 4
ReadBoundaryFile: Reading boundary elements from file: ./mesh.boundary
PermuteNodeNumbering: Performing node mapping
ReadTargetNames: Reading names info from file: ./mesh.names
ERROR:: ReadTargetNames: Mapping of name is not unique: solid2
No result file was created.
my case.sif :
Code: Select all
Check Keywords "Warn"
Header
Mesh DB "."
End
Solver 1
Calculate Electric Energy = Logical True
Calculate Electric Field = Logical True
Equation = String "Stat Elec Solver"
Exec Solver = String "Always"
Linear System Abort Not Converged = Logical False
Linear System Convergence Tolerance = Real 1e-10
Linear System Iterative Method = String "BiCGStab"
Linear System Max Iterations = Integer 500
Linear System Precondition Recompute = Integer 1
Linear System Preconditioning = String "ILU0"
Linear System Residual Output = Integer 1
Linear System Solver = String "Iterative"
Optimize Bandwidth = Logical True
Procedure = File "StatElecSolve" "StatElecSolver"
Stabilize = Logical True
Steady State Convergence Tolerance = Real 1e-05
Variable = String "Potential"
Variable DOFs = Integer 1
End
Simulation
Coordinate Mapping(3) = Integer 1 2 3
Coordinate Scaling = Real 0.001
Coordinate System = String "Cartesian 3D"
Output Intervals = Integer 1
Simulation Type = String "Steady State"
Steady State Max Iterations = Integer 1
Steady State Min Iterations = Integer 0
Use Mesh Names = Logical True
End
Constants
Permittivity Of Vacuum = Real 8.854189999999999e-12
End
Body 1
Equation = Integer 1
Material = Integer 1
Name = String "Solid1"
End
Material 1
Relative Permittivity = Real 5.0
End
Equation 1
Active Solvers(2) = Integer 1 2
End
Solver 2
Coordinate Scaling Revert = Logical True
Equation = String "ResultOutput"
Exec Solver = String "After simulation"
Output File Name = File "case"
Procedure = File "ResultOutputSolve" "ResultOutputSolver"
Vtu Format = Logical True
End
Body 2
Equation = Integer 2
Name = String "Solid2"
End
Equation 2
Active Solvers(2) = Integer 1 2
End
Boundary Condition 1
Name = String "Solid2"
Potential = Real 1.0
Potential Constant = Logical True
End
Boundary Condition 2
Name = String "Face1"
Potential = Real 0.0
End
mesh.names
Code: Select all
! ----- names for bodies -----
$ Solid1 = 3
$ Solid2 = 4
! ----- names for boundaries -----
$ Face1 = 2
$ bnry5 = 5
$ bnry6 = 6
Code: Select all
!------ Skeleton for body section -----
Body 1
Name = Solid1
End
Body 2
Name = Solid2
End
!------ Skeleton for boundary section -----
Boundary Condition 1
Name = Face1
End
Boundary Condition 2
Name = bnry5
End
Boundary Condition 3
Name = bnry6
End
My configuration is :
Code: Select all
OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods:
* fasteners 0.4.52
* ThreadProfile 1.84.0