Skip to content
/ cmphy Public
forked from fellobos/cmphy

A Python interface to the COMSOL Multiphysics API

Notifications You must be signed in to change notification settings

Verney7/cmphy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmphy

cmphy is a Python interface to the API of the COMSOL Multiphysics simulation software.

Starting a new COMSOL Multiphysics session is simple:

>>> ses = Session()
>>> ses.port
2036
>>> mu = ses.mu  # Get a handle to the ModelUtil object.
>>> model = mu.create(tag="Model1")
>>> mu.tags()
('Model1',)

The above starts a new COMSOL server (listening to port 2036), connects the Python client to the running server and creates an empty model.

Installation

Clone the public repository to get a local copy of the source:

$ git clone git://github.com/fellobos/cmphy.git

Once you have it, you can embed cmphy in your own Python package, or install it into your site-packages easily:

$ cd cmphy
$ python setup.py install

Documentation

cmphy has usage and reference documentation available at fellobos.github.io.

About

A Python interface to the COMSOL Multiphysics API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.7%
  • Makefile 4.3%