Giter VIP home page Giter VIP logo

openems_docker's Introduction

Docker Image for openEMS

Overview

This Docker image provides an environment for running openEMS with graphic using X11. openEMS is a free and open electromagnetic field solver using the FDTD method. Develop your Python code in the src directory to develop locally and execute inside a containerized environment.

Project Structure

  • Dockerfile: Defines the Docker image and its environment.
  • Makefile: Provides commands to build and run the Docker container.
  • src/: Contains the Python script Simple_Patch_Antenna.py.
  • README.md: This file, containing project documentation.

Overview

  • Base Image: Ubuntu 22.04
  • Includes:
    • XQuartz for GUI applications on macOS
    • Various dependencies and libraries for openEMS

Features

  • Install openEMS and related dependencies
  • Run GUI applications within Docker
  • Access GUI applications using X11
  • Develop locally and execute your script inside a containerized environment.

Prerequisites

On macOS

  1. Install XQuartz:
    • Download and install XQuartz from XQuartz.org.
    • Restart your macOS after installation to apply changes.
  2. Check DISPLAY Variable::
    • open a terminal and run
    echo $DISPLAY
    It should output something like localhost:0 or localhost:0.0.
    • manually set DISPLAY
    export DISPLAY=localhost:0

On Linux

  • Make sure xhost is installed and configured properly to allow Docker containers to connect to the X server. Allow Connections:
xhost +localhost
xhost +127.0.0.1

Docker Setup

Build the Docker Image

To build the Docker image, run the following command:

make build

Run the Docker Container

To run the Python script inside the Docker container, use:

make run

Clean Up Docker Resources

To remove dangling Docker containers, networks, and images, use:

make clean

Reference

[1] openEMS installation.
[2] openEMS documentation.
[3] openEMS.
[4] XQuartz.org.

openems_docker's People

Contributors

tclin0122 avatar

Stargazers

Spacenerd Eric avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.