Skip to content

mhanus/hermes-module-basic-adapt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hermes Module Basic Adapt

This is an adaptive version of the module Basic.

Equation

-div(c1 nabla u) + (c2, c3) cdot nabla u + c4 u = c5

Here:

  • c1 ... equation parameter, element-wise constant
  • c2 ... equation parameter, element-wise constant
  • c3 ... equation parameter, element-wise constant
  • c4 ... equation parameter, element-wise constant
  • c5 ... equation parameter, element-wise constant

Boundary Conditions

Dirichlet with piecewise-constant values (u = const) Neumann with piecewise-constant normal derivatives (du/dn = const) Newton with piecewise-constant parameters (const_1 u + du/dn = const_2)

Build the Module

In the root directory of this module, type:

cmake .
make

Run the Module on C++ Level

C++ sources are located in the directory src/. Change dir to the directory src/ and run the module using:

./module-basicadapt model.cfg

The file model.cfg is a text file that emulates input from a GUI. You can change the parameters there at your will.

Run the Module on Python Level

Python wrappers are located in the directory python/ and they allow you to call the module from Python as follows:

python module-basicadapt.py

The file module-basic.py contains a set of parameters analogous to those which on C++ level are in the file model.cfg. The user can change these parameters arbitrarily.

Run the Module in the Online Lab SDK

To be completed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.4%
  • C++ 30.8%
  • C 6.4%
  • Python 5.4%