Skip to content

Latest commit

 

History

History

peec1D

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

PEEC 1D

This directory contains a PEEC code, based on stick elements, for the solution of full-wave electromagnetic problems.

An optimized, parallel (OpenMP), fortran90 version of this code has been used in

In this code, the PEEC system of equations is assembled in its reduced form where currents only are considered as unknowns:

[R+iwL+(1/(iw)A^TPA)j=e

see the above references for more details and consider citing it.

In this code only conductive media modeled by thin 1D (a.k.a "stick") elements are considered.


Description

MAIN_PEEC_sticks_MF.m is the main file you must run to start the code. The final system of equations is generated by a function
handle "sys_MF" which allows computing either the full PEEC system or a generic block of it (or a single entry). Thus, this code is suitable for the application of low-rank compression techniques, e.g.: https://github.com/numpi/hm-toolbox https://github.com/klho/FLAM/ The varibale "barDoFs" contains the barycenters related to the Degrees of Freedom, i.e. stick currents (and other lumped circuit currents)

MAIN_PEEC_sticks_MF_lowrank.m is the main file you must run to start the code coupled with the low rank compression library https://github.com/UniPD-DII-ETCOMP/hm-toolbox based on HODLR and HSS. 1) Download the Matlab HM-toolbox 2) Extract it so that the "hm-toolbox-master" directory is at the same level of "test_cases", "fun" and "lowrank". HSS, HODLR, and HMATRIX methods can be used to compress the PEEC matrix. Note that the compression performances are higly problem dependent and the compression may be very poor without a proper reordering of the DoFs.

All user-settable quantities, e.g. frequency and resistivity, are contained in the block identified by the BEGIN USER SETTINGS / END USER SETTINGS comments.

Available test cases

Several test cases are contained in separate directories under "test_cases". Each directory contains a description.txt file. Set the "test_case_dir" variable in "MAIN_PEEC_sticks_MF.m" and "MAIN_PEEC_sticks_MF_lowrank.m" to the appriapriate directory.

User-defined test cases

Follow the instuctions given in "README.txt" inside the "test_cases" directory.

Contacts

Riccardo Torchio ([email protected])