A new approach to field modelling

de dk es fr it cz ru cn

RSS Twitter YouTube Blogger Facebook Linkedin

Main > Application > Sample problems

LabelMover programming API

LabelMover has open application programming interface (API). It is possible to develop your own algorithms and apply them to field models by simply organizing the interaction between LabelMover and your other programs.

Calling the LabelMover from your application may be done either trough COM Automation interface or simplified command-line interface.

You cannot set up LabelMover script yet. You have to prepare the QuickField problem and LabelMover script in advance. The typical way of working through LabelMover API:

  1. Set up QuickField problem (through graphic user interface)
  2. Set up LabelMover script (through graphic user interface)
  3. Run 1-step calculation from your program.
  4. Change step parameters and repeat p.4

Download Example nonlinear1. Move common boundary 1-1 of rectangle and half-circle in order to get the minimal area.

This task can be solved within LabelMover itself or by using external optimizer. We use bisectional optimization method programmed on VBA (Excel). The LabelMover is invoked through API interface to perform 1-step calculation.

To run the simulation:

  1. Open problem file (*.pbm)
  2. Invoke LabelMover from QuickField (Tools > Parametric Analysis)
  3. Open LabelMover script (*.qva)
  4. Open the Excel file (*.xls). Please, make sure that Macros are allowed.
  5. Press Do optimization button.

You can also use command line instead of API.

Download Example wall1. Calculate the temperature flux through the wall at insulation thickness of 5, 6 and 10 cm.

The LabelMover is invoked through command-line interface (QLMCall.exe utility). The LabelMover script and QuickField problem are already defined and configured.

To run the simulation:

  1. Open problem file (*.pbm)
  2. Invoke LabelMover from QuickField (Tools > LabelMover)
  3. Open LabelMover script
  4. Run the run_me.bat. The results are stored in results.txt field.