Skip to content

Juleinn/IntuitionRF

Repository files navigation

IntuitionRF

IntuitionRF is an OpenEMS wrapper plugin for blender aiming to make dealing with RF simulation more intuitive.

OpenEMS project page : https://www.openems.de/

Example

patch

Contents

https://www.youtube.com/watch?v=oCE_hrCGen4 IntuitionRF - Youtube

Install

1. Install OpenEMS

IntuitionRF does not provide a OpenEMS distribution, you have to install a version yourself.

Install Instructions for OpenEMS

Requirements:

  • OpenEMS must be built with python interface enabled
  • OpenEMS must be built against the same python version blender is using

2. Install Additionnal python deps

Additional Python dependencies:

pip install vtk
pip install matplotlib
pip install numpy 
pip install h5py

Once you have the python examples from OpenEMS running,

3. Install this plugin

Download this repo as .zip file then install as a regular addon

4. Enable the addon

  1. Enable the addon

enable the addon

  1. put your OpenEMS's python version syspath into this.
  • If you compiled OpenEMS against your system's python version, you can use the 'detect systen' to get the syspath automatically

  • If you compiled OpenEMS against a virtualized environment (conda, venv, ...) then run the following in the python interpreter :

import sys 
print(sys.path)

then copy the output to the addon's configuration syspath

5. Reload plugins

Use blender's 'reload scripts' (F3->reload scripts). The plugin should now be ready. If not, try restarting blender

syspath reload

6. Properties

You should now see new IntuitionRF properties panels under the 'object' and 'scene' categories. panels

7. Checking for updates

This plugin might be updated with bug fixes or new features. If you find a bug or have an issue with the plugin make sure to run the latest version.

A feature lets you check the plugin's latest release using Github's API. This is not automatic. This will not install anything, just tell you if you're up to date.

I do not collect any telemetry/data from the plugin's usage. Feel free to manually check for updates if you do not feel like using Github's API

check updates

Install procedure on Windows with pre-built OpenEMS distribution

OpenEMS

If you choose to use the binary distribution for OpenEMS on windows here are the steps you need to follow.

  • make sure you download the OpenEMS binaries with python bindings
  • install the python libraries as per OpenEMS's install instructions

install deps

pip install numpy matplotlib vtk h5py
cd LETTER:/your/OpenEMS/extract/dir/python 
pip install openEMS-0.0.33-cp311-cp311-win64_amd64.whl
pip install CSXCAD-0.6.2-cp311-cp311-win64_amd64.whl

install the addon

install then enable the addon addon install

configure the addon

You need to configure the system python's syspath and openEMS install dir addon install

  1. syspath Open python in a terminal, then
import sys 
sys.path

addon install

copy the path, paste it into the syspath

  1. OpenEMS DLL directory Open the file dialog, and select the directory with OpenEMS's DLL files

addon install

Addon is now configured

addon install

restart blender

check install

Open blender CLI output, this is where you can see what's going on in openEMS

addon install

You should have the new properties panels

addon install