Simulation on local network or cloud subnet

An efficient way to launch many simulation is to use other local network computers, while using your own computer to launch Funz commands.

Assuming that the simulation software (say Modelica, our standard example) is already installed on the other local network computers, on each you just have to:

  • intall Funz:
    • Python: pip install Funz, then import Funz
    • R: remotes::install_github('Funz/Funz.R'), then library(Funz)
    • bash/cmd.exe: download and unzip or
  • install simulation plugin:
    • Python: Funz.installModel('Modelica')
    • R: Funz::install.Model('Modelica')
    • bash/cmd.exe: download and unzip
  • if needed, setup simulation script ‘Funz/scripts/’ or ‘Funz/scripts/Modelica.bat’
  • add your own computer IP (say in the ‘Funz/calculator.xml’ file:
    <HOST name="" port="19001">
    <HOST name="" port="19002">
    <HOST name="" port="19003">
    <HOST name="" port="19004">
  • start background Funz computing daemon:
    • Python: Funz.startCalculators(1)
    • R: Funz::startCalculators(1)
    • bash/cmd.exe: launch backend Funz/ or Funz/FunzDaemon.bat

You can now check that these computers are well setup by running basic example on your own, that will use one of the local network computers:

  • check that you well receive network Funz heartbeats: nc -lu 19001 or socat -u udp-recv:19001
  • launch basic calculation: * Python: Funz.Run(model="Modelica",input_files="samples/") * R: Funz::Run(model="Modelica",input.files="samples/") * bash/cmd.exe: ./ Run -m Modelica -if samples/ or ./Funz.bat Run -m Modelica -if samples/

Improve this page