Installing the Compute Server on Windows

You can install the compute server on Windows.

  1. On a machine dedicated to calculation operations, install CATSYSM_IP - CATIA Systems Simulation Installation Product in the required directory (example: C:\SystemsSimulation).

    Note: The directory C:\SystemsSimulation is used as an example in several places in this guide. Replace it with the actual installation directory in case that you install the product in a different location.

    Warning: Do not install CATSIJ_TP - CATIA Systems Simulation JavaScript Technical Product at the same time, as the target location for the installation is different.

  2. Copy the SystemsSimulationConfig.json file, located in C:\SystemsSimulation\win_b64\config\, to the root of the installation directory (C:\SystemsSimulation).

    Notes:
    • If you use another installation directory than the above directory, adjust the path above to your installation directory.
    • The SystemsSimulationConfig.json file is the key element for the server configuration. You can modify it through several configuration points.

  3. Modify the following parameters according to your needs:

    Parameter Description Example
    publicAddress Set this parameter with the network name of your machine. "publicAddress": "myMachine.myDomain.com"
    certificate and privateKey To ensure a secure connection for all the users, indicate the certificate and the SSL private key provided by your IT department.

    "certificate": "C:\\SSL\\myMachine.myDomain.com.crt","privateKey": "C:\\SSL\\myMachine.myDomain.com.key"

    Note: Do not forget to double the backslashes.
    network Network configuration elements used to validate that the machine's ports are open and accessible.
    Note: This configuration is optional.

    The default configuration proposal:

    • The port 8080 is used for the socket connection.
    • The port 2097 is used to initialize the webSocket connections of each client.
    • For each client, a port is allocated, in the range 2098 to 2198.

    The configuration is now complete. In the following template, replace the values in bold (the first such value is C:\\SSL\\myMachine.myDomain.com) according to your server setup; default values for other options can be kept unchanged.
    {
      "hypervisorSettingsVersion": 2,
      "network": {
        "certificate": "C:\\SSL\\myMachine.myDomain.com.crt",
        "privateKey": "C:\\SSL\\myMachine.myDomain.com.key",
        "publicAddress": "myMachine.myDomain.com",
        "socketPort": 8080,
        "webSocketPort": 2097,
        "webSocketRange": "2098-2198",
      },
      "processProvisioning": {
        "strategy": "on-premise",
        "pools": [
          {
            "names": ["SystemsSimulationCS"],
            "launcher": {
              "executable":
     "C:\\SystemsSimulation\\win_64\\code\\command\\SystemsSimulationStartSession.bat
     <EK_POOL> <EK_IDENTIFIER> -fp C:\\HV\\SystemsSimulation\\win_b64"
            },
            "criterion": "byIdentifier",
            "timeoutInSeconds": 1200
          }]
      }
    }
  4. Open a Windows command prompt in administrator mode and move to the installation directory (example: cd C:\SystemsSimulation\).

    Note: Change the path to your installation directory path if you have used another location.

  5. Install a C compiler.

    Note: The application requires the prior installation of a C compiler. The supported compilers are Microsoft Visual Studio or GCC. For Microsoft Visual Studio, both 32-bit and 64-bit versions are supported. For GCC, only 64-bit versions are supported.

    Tip: For more information about possible compilers, see the Program Directories.

  6. Define the variables according to the installed compiler.

    Note: Do not use quotes, even if the space character is used in the compiler path.

    For example:
    • For Visual Studio:

      set SID_SIA_USE_COMPILER=VC

      set SID_SIA_COMPILER_PATH=C:\Program Files (x86)\Microsoft Visual Studio XX\VC

    • For GCC:

      set SID_SIA_USE_COMPILER=GCC64

      set SID_SIA_COMPILER_PATH=C:\MinGW\bin\gcc.exe

  7. Enter the following single-line command to start the server: start C:\SystemsSimulation\win_b64\code\bin\EKHypervisor.exe start "C:\SystemsSimulation\SystemsSimulationConfig.json" -listenOnWebSocket

    Important: Before launching the command, make sure that the current folder is the same as the path in the command (in our example C:\SystemsSimulation). If you use another folder, you must change to that folder.

    The console displays the following message:
    Using HypervisorSettings file ‘C:\SystemsSimulation\SystemsSimulationConfig.json’
    Listening on socket port '8080'
    Listening on websocket port '2097'
    

Result: You can now start the web applications.