项目作者: crmin

项目描述 :
Surface tension contact angle calculator
高级语言: Python
项目地址: git://github.com/crmin/contact_angle_calculator.git
创建时间: 2021-03-18T16:48:34Z
项目社区:https://github.com/crmin/contact_angle_calculator

开源协议:Other

下载


Contact Angle Calculator

Web Demo Setup

Prepare

  1. Install docker
  2. Build docker
    1. docker build --tag contact_angle_calculator .

Start

  1. docker run -p 51273:51273 -d --name=contact_angle contact_angle_calculator

You can use web demo after access to http://localhost:51273

Usage

Usage wrote in demo page

Web Demo Setup (without docker)

Prepare

  1. Install python (version >= 3.8)
    1. (Optional) install virtualenv
    2. (Optional) Make virtual environment using virtualenv
  2. Install dependency pip install -r requirements.txt

Start

Execute webserver:

  1. python app.py

You can use web demo after access to http://localhost:51273

If you want to change port number of demo page, open app.py and change port number at bottom of code.

  1. app.run(host='0.0.0.0', port='<CHANGE_THIS_NUMBER>')

Command Line Processing

Prepare

  1. Install python (version >= 3.8)
    1. (Optional) install virtualenv
    2. (Optional) Make virtual environment using virtualenv
  2. Install dependency pip install -r requirements.txt

Prepare Image

Before execute calculator code, you should decorate image.

  1. Prepare contact angle image.
  2. Draw BLUE bordered ellipse over liquid drop.
    • You can use any blue color but, reference color is #41719c
  3. Draw RED line over surface boundary.
    • You can use any red color but, reference color is #ff0000

decorated image example

Usage

  1. python run.py <image_file_path>

Used Open Sources

LICENSE

Beerware