Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge_beast #122

Open
wants to merge 130 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
0ed9669
gitignore aangepast
PaulOlyslager Sep 7, 2023
9a6e0da
MWncrossn implemented
PaulOlyslager Sep 14, 2023
790738e
all operators implemented but not tested
PaulOlyslager Sep 14, 2023
e6aa985
ToDo: add all limits of the operators and write
PaulOlyslager Sep 14, 2023
a892426
last update 14 sept
PaulOlyslager Sep 14, 2023
d25271e
update not working
PaulOlyslager Sep 15, 2023
70dbfde
update
PaulOlyslager Sep 15, 2023
c566821
implemented operators, not tested
PaulOlyslager Sep 15, 2023
2fc4839
traces implemented, not tested
PaulOlyslager Sep 18, 2023
cab394b
implemented operators and trace in a first manner
PaulOlyslager Sep 19, 2023
1335e2e
implemented operators and trace, more general description needed
PaulOlyslager Sep 19, 2023
9935473
Merge pull request #1 from PaulOlyslager:trace-operators
PaulOlyslager Sep 19, 2023
3cfb1d4
types of bases changed
PaulOlyslager Sep 19, 2023
4b15721
Merge pull request #2 from PaulOlyslager:changing-types-of-bases
PaulOlyslager Sep 19, 2023
f8cb0a0
implemented operators in a general way
PaulOlyslager Sep 19, 2023
a23cabb
hhh debuged, TODO write compleet test,
PaulOlyslager Sep 19, 2023
b2cf8a0
debuged
PaulOlyslager Sep 20, 2023
85c4172
created test HHHOperators
PaulOlyslager Sep 20, 2023
03cfe78
included test HHHoperators in BEAST
PaulOlyslager Sep 20, 2023
eac4d85
Merge pull request #3 from PaulOlyslager:helmholtzhodge-operators
PaulOlyslager Sep 20, 2023
2af25c7
non used functions commented
PaulOlyslager Sep 20, 2023
2c17db7
Merge pull request #4 from PaulOlyslager:cleaning-up
PaulOlyslager Sep 20, 2023
4d58aff
Merge pull request #5 from PaulOlyslager/implement-operators
PaulOlyslager Sep 20, 2023
d3e5502
design foundations of a general
PaulOlyslager Sep 20, 2023
3f02d67
work in progress
PaulOlyslager Sep 21, 2023
e383457
update
PaulOlyslager Sep 22, 2023
00cf973
overwritten meshpoint to add normals
PaulOlyslager Sep 22, 2023
c97f948
Merge pull request #6 from PaulOlyslager:fix-local-operator
PaulOlyslager Sep 22, 2023
d6147b9
trace operator in HHH created
PaulOlyslager Sep 22, 2023
b1378a3
normalorient implemented
PaulOlyslager Sep 22, 2023
9c25aaa
Merge pull request #7 from PaulOlyslager:create-trace-operators
PaulOlyslager Sep 22, 2023
7562f4d
debuged, overloaded functions of compsciencemeshes
PaulOlyslager Sep 22, 2023
177b3e7
Merge pull request #8 from PaulOlyslager:debug-until-compilation
PaulOlyslager Sep 22, 2023
efc455f
fixed passing nt and nb to hhhlocaloperator
PaulOlyslager Sep 26, 2023
bc96e12
generate rhs and lhs programmed, returns matrix
PaulOlyslager Sep 26, 2023
3a265de
debug
PaulOlyslager Sep 26, 2023
519be03
adding divergence in HHH
PaulOlyslager Sep 26, 2023
a6e1a9f
update
PaulOlyslager Sep 26, 2023
f209412
code runs succesfully
PaulOlyslager Sep 28, 2023
e7d28a3
display operators possible
PaulOlyslager Sep 28, 2023
d09028c
possibility to transform basis
PaulOlyslager Sep 28, 2023
c0fbf8b
functional based on function implemented
PaulOlyslager Sep 29, 2023
289c7d0
update
PaulOlyslager Sep 29, 2023
0df9324
update, multi-trace werkt
PaulOlyslager Oct 19, 2023
69f8dc8
Merge pull request #9 from PaulOlyslager:testing
PaulOlyslager Oct 19, 2023
6634a50
introducing new type of notation for composed
PaulOlyslager Oct 20, 2023
e7bdce6
changed cellinteractions
PaulOlyslager Oct 20, 2023
58a5e76
posible to build operator
PaulOlyslager Oct 20, 2023
0f9dbdf
Merge pull request #10 from PaulOlyslager:localoperator
PaulOlyslager Oct 20, 2023
5aeaeff
update composed operator starts
PaulOlyslager Oct 24, 2023
72ccc97
Merge branch 'krcools:master' into master
PaulOlyslager Oct 24, 2023
5fd4ff3
added chart which explicitly saves normal
PaulOlyslager Oct 24, 2023
678cbfe
added normalchart
PaulOlyslager Oct 24, 2023
3c0c60d
local bases definition independent of normal
PaulOlyslager Oct 25, 2023
ddc9a3d
add revise
PaulOlyslager Oct 25, 2023
d0f1f2f
change of permutation to redefinition on barycentric
PaulOlyslager Oct 25, 2023
cc68dc1
make alpha if one, of correct type
PaulOlyslager Oct 25, 2023
b22f6bd
cleanup
PaulOlyslager Oct 25, 2023
8b53448
moved to compsciencemeshes package
PaulOlyslager Oct 25, 2023
c2da4df
in curl definition taken acount for normal
PaulOlyslager Oct 26, 2023
1c1d9fe
Merge branch 'master' into decouple-normal
PaulOlyslager Oct 26, 2023
397f843
Revert "Merge branch 'master' into decouple-normal"
PaulOlyslager Oct 26, 2023
ac602e1
update gitignore
PaulOlyslager Oct 26, 2023
c9b8ead
remove extendedcharts
PaulOlyslager Oct 26, 2023
dd8ca41
cleanup
PaulOlyslager Oct 26, 2023
e6c6a51
Merge pull request #11 from PaulOlyslager:decouple-normal
PaulOlyslager Oct 26, 2023
fa273f7
updat gitignore
PaulOlyslager Oct 26, 2023
07e9620
Merge branch 'master' of https://github.com/PaulOlyslager/BEAST.jl
PaulOlyslager Oct 26, 2023
89d86e6
Merge branch 'master' of https://github.com/PaulOlyslager/BEAST.jl in…
PaulOlyslager Oct 26, 2023
cc3aa34
added Trace Operator,
PaulOlyslager Oct 30, 2023
5cc1522
debuged
PaulOlyslager Oct 30, 2023
33180e2
new interpretation of trace by inserting
PaulOlyslager Nov 7, 2023
99f586e
cleanup
PaulOlyslager Nov 8, 2023
b6b5f40
update
PaulOlyslager Nov 8, 2023
388b961
cleanup
PaulOlyslager Nov 9, 2023
95afc62
undo changes on subdBasis
PaulOlyslager Nov 9, 2023
b6a08f7
update bug
PaulOlyslager Nov 9, 2023
3b8d1cf
sauterschwab support for non matching triangles
PaulOlyslager Nov 14, 2023
c7220b3
reset examples
PaulOlyslager Nov 14, 2023
44f5ae5
cleanup
PaulOlyslager Nov 14, 2023
28da563
Merge pull request #12 from PaulOlyslager:Multi-trace
PaulOlyslager Nov 14, 2023
6910b56
Merge branch 'master' of https://github.com/krcools/BEAST.jl
PaulOlyslager Nov 14, 2023
611bfb9
update
PaulOlyslager Nov 29, 2023
7585c34
Merge branch 'master' of https://github.com/krcools/BEAST.jl
PaulOlyslager Nov 29, 2023
5867ff1
update
PaulOlyslager Nov 30, 2023
32c3557
update, implemented multi-trace approach
PaulOlyslager Dec 12, 2023
e862e5f
update
PaulOlyslager Dec 18, 2023
6d079ed
update
PaulOlyslager Dec 18, 2023
1b0e763
adding multie-trace support
PaulOlyslager Dec 18, 2023
cf41a9d
debug multi-trace update
PaulOlyslager Dec 19, 2023
d42e20c
debug
PaulOlyslager Dec 19, 2023
0d2ea88
debug
PaulOlyslager Dec 20, 2023
45cb989
update complement error
PaulOlyslager Dec 21, 2023
bf75183
update
PaulOlyslager Jan 8, 2024
4152143
pmchwt support
PaulOlyslager Jan 9, 2024
5e8ed87
update
PaulOlyslager Jan 16, 2024
f8679ec
cleanup composed operator
PaulOlyslager Feb 12, 2024
f1b4646
added pmchwt like method to multi-trace vector potential
PaulOlyslager Feb 12, 2024
0acbb46
corrected linearalgebra adjoint and transpose
PaulOlyslager Feb 12, 2024
0a7072f
added single value basis
PaulOlyslager Feb 12, 2024
e38a538
Merge branch 'master' of https://github.com/krcools/BEAST.jl into int…
PaulOlyslager Feb 12, 2024
4462de7
update to make vppmchwt file working
PaulOlyslager Feb 21, 2024
b843ead
inserted kwargs argument in assemble
PaulOlyslager Feb 21, 2024
6f64680
update vppmchwt example
PaulOlyslager Feb 22, 2024
ca3a9ac
added complement error + nearfield calculation TODO test
PaulOlyslager Feb 23, 2024
058ae78
added getindex for operators, hilbertvector, vector{hilbertvector}
PaulOlyslager Mar 8, 2024
8bb343a
update
PaulOlyslager Mar 11, 2024
4babce8
update multi-trace
PaulOlyslager Mar 11, 2024
e88216d
correcting n cross rt space and n cross nd space
PaulOlyslager Mar 11, 2024
762deae
cleanup composed operator
PaulOlyslager Mar 11, 2024
2e7cbda
add documentation trace simplex and trace meshpoint
PaulOlyslager Mar 11, 2024
2596a81
matrix to bilform
PaulOlyslager Mar 11, 2024
d642dc2
simplified trace and potential operator
PaulOlyslager Mar 11, 2024
460b352
update
PaulOlyslager Mar 11, 2024
eb16173
Merge pull request #15 from PaulOlyslager/interactions
PaulOlyslager Mar 11, 2024
3ab7da4
update master to merge with beast
PaulOlyslager Mar 12, 2024
907e204
remove files
PaulOlyslager Mar 12, 2024
a6aa7b7
update
PaulOlyslager Mar 12, 2024
2b42b55
update
PaulOlyslager Mar 12, 2024
18e36e0
update
PaulOlyslager Mar 12, 2024
603607f
removed exports, .gitignore adjusted
PaulOlyslager Mar 12, 2024
68ffca2
adjusted toml
PaulOlyslager Mar 12, 2024
682c69c
updated vppmchwt to not rely on exports
PaulOlyslager Mar 12, 2024
65c1ed7
update to pass tests
PaulOlyslager Mar 12, 2024
2a48cbc
update vppmchwt
PaulOlyslager Mar 13, 2024
9e4495b
farfield local for composed operator
PaulOlyslager Mar 14, 2024
f9bcea2
update
PaulOlyslager Mar 15, 2024
ddf51f4
fix error restrict function
PaulOlyslager Mar 15, 2024
41e7a0b
update 1 before sync
PaulOlyslager Nov 12, 2024
0e93c3f
update 2 before sync
PaulOlyslager Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ FastGaussQuadrature = "442a2c76-b920-505d-bb47-c5924d526838"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
LiftedMaps = "d22a30c1-52ac-4762-a8c9-5838452405e0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LinearMaps = "7a12625a-238d-50fd-b39a-03d52299707e"
NestedUnitRanges = "032820ab-dc03-4b49-91f4-7d58d4da98b3"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SauterSchwab3D = "0a13313b-1c00-422e-8263-562364ed9544"
SauterSchwabQuadrature = "535c7bfe-2023-5c1d-b712-654ef9d93a38"
Expand Down
1 change: 1 addition & 0 deletions examples/ex_globalmultitrace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ h = 0.125
Γ2 = -Mesh([point(-x,y,z) for (x,y,z) in vertices(Γ1)], deepcopy(cells(Γ1)))
Γ = [Γ1, Γ2]


# Beyond this point the problem description is completely independent
# of the number of domains and their relative positioning

Expand Down
28 changes: 15 additions & 13 deletions examples/pmchwt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ end
μ0 = 4π*1e-7
c = 1/√(ϵ0*μ0)

λ = 2.9979563769321627
ω = 2π*c/λ
# λ = 2.9979563769321627
# ω = 2π*c/λ
ω = 10.0^8*2*pi

Ω = CompScienceMeshes.tetmeshsphere(λ,0.1*λ)
# Ω = CompScienceMeshes.tetmeshsphere(λ,0.1*λ)
Ω = CompScienceMeshes.tetmeshsphere(1.0,0.2)
Γ = boundary(Ω)
X = raviartthomas(Γ)
@show numfunctions(X)

ϵr = 2.0
μr = 1.0
μr = 3.0

κ, η = ω/c, √(μ0/ϵ0)
κ′, η′ = κ*√(ϵr*μr), η*√(μr/ϵr)
Expand Down Expand Up @@ -61,7 +63,7 @@ pmchwt = @discretise(
(K+K′)[l,j] + (α*T+α′*T′)[l,m] == -e[k] - h[l],
j∈X, m∈X, k∈X, l∈X)

u = solve(pmchwt)
u = BEAST.solve(pmchwt)

Θ, Φ = range(0.0,stop=2π,length=100), 0.0
ffpoints = [point(cos(ϕ)*sin(θ), sin(ϕ)*sin(θ), cos(θ)) for θ in Θ for ϕ in Φ]
Expand Down Expand Up @@ -97,10 +99,10 @@ Plotly.plot(patch(Γ, norm.(fcrm)))



Z = range(-6,6,length=200)
Y = range(-4,4,length=200)
nfpoints = [point(0,y,z) for z in Z, y in Y]

Zz = range(-1,1,length=130)
Yy = range(-1,1,length=100)
nfpoints = [point(z,0,y) for z in Zz, y in Yy]
nfpoints = pts
import Base.Threads: @spawn
task1 = @spawn nearfield(u[m],u[j],X,X,κ,η,nfpoints,E,H)
task2 = @spawn nearfield(-u[m],-u[j],X,X,κ′,η′,nfpoints)
Expand All @@ -116,11 +118,11 @@ Plots.contour(real.(getindex.(H_tot,2)))

Plots.heatmap(Z, Y, clamp.(real.(getindex.(E_tot,1)),-1.5,1.5))
Plots.heatmap(Z, Y, clamp.(imag.(getindex.(E_tot,1)),-1.5,1.5))
Plots.heatmap(Z, Y, real.(getindex.(H_tot,2)))
Plots.heatmap(Z, Y, imag.(getindex.(H_tot,2)))
Plots.heatmap(Yy, Zz, norm.(getindex.(H_tot,2)))
Plots.heatmap(Y, Z, norm.(getindex.(H_tot,2)))

Plots.plot(real.(getindex.(E_tot[:,51],1)))
Plots.plot(real.(getindex.(H_tot[:,51],2)))



Plots.heatmap(Zz,Yy,norm.(getindex.(-Bbb[1].+Bbb[3].-Bbb[2]/2,2))/μ0,clim=(0,0.02))
Plots.heatmap(Zz,Yy,real(getindex.(H.(pts),2)))
Loading