FE Discretisation for embedded cables

Br0BOLE
Sun, 16 Mar 2025 21:14:07 +0000
Geo

Hi there,
I’m trying to automate the discritization of FE meshes for High voltage cables embedded in the ground. This is to conduct thermal analysis and parameterise the geometry of the cable (cables with tri cores).

I wanted to move to Julia, but I think the meshing facilities are not mature enough unfortunately. I’ve tried to use this package called meshes.jl which seems promising. However, I’m finding it difficult to even create the meshing within the cable (an offset circle within a bigger circle. Does anyone know what I’m doing wrong?

using Meshes
import CairoMakie as Mke
Y = [3 * cos(π/20 * (j-1)) for j in 1:40];
X = [3 * sin(π/20 * (j-1)) for j in 1:40];

A = Array{Tuple{Float64, Float64}}(undef, 0)
for i in 1:40
    Tup = (X[i],Y[i])
    push!(A,(Tup))
end

Y = [ 1+cos(π/20 * (j-1)) for j in 1:40];
X = [ sin(π/20 * (j-1)) for j in 1:40];

B = Array{Tuple{Float64, Float64}}(undef, 0)
for i in 1:40
    Tup = (X[i],Y[i])
    push!(B,(Tup))
end

ring = Ring(A)
ring1 = Ring(B)
Poly = PolyArea([A,B])
boundary = [A, B]

discretize(Poly ) |> viz

Many thanks for any suggestions

14 posts - 4 participants