-
On a machine dedicated to calculation operations, install CATSYSM_IP - CATIA
Systems Simulation Installation Product in the required directory (example:
/usr/DassaultSystemes/SystemsSimulation).
Note:
The directory /usr/DassaultSystemes/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.
SID server runs on Red Hat Enterprise Linux 8.6 64-bit, and compatible systems.
-
Copy the SystemsSimulationConfig.json file, located in
/usr/DassaultSystemes/SystemsSimulation/linux_a64/config, to the
root of the installation directory
(/usr/DassaultSystemes/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.
-
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": "/usr/SSL/myMachine.myDomain.com.crt","privateKey":
"/usr/SSL/myMachine.myDomain.com.key"
|
| 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 /usr/SSL/myMachine.myDomain.com)
according to your server setup; default values for other options can be kept
unchanged. {
"hypervisorSettingsVersion": 2,
"network": {
"certificate": "/usr/SSL/myMachine.myDomain.com.crt",
"privateKey": "/usr/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":
"/usr/DassaultSystemes/SystemsSimulation/linux_a64/code/command/SystemsSimulationStartSession.sh
<EK_POOL> <EK_IDENTIFIER>"
},
"criterion": "byIdentifier",
"timeoutInSeconds": 1200
}]
}
}
-
Open a console window in administrator mode and move to the installation directory
(example: cd /usr/DassaultSystemes/SystemsSimulation).
Note:
Change the path to your installation directory path if you have used another
location.
-
Install a C++ compiler.
Note:
The application requires the prior installation of a C++ compiler. Only
GCC is supported on Linux, with version 11.2.1 or later.
As an example of an installation command, you can, for RHEL 8.6, run the command
sudo yum install gcc gcc-c++
-
Define the following variables, to configure the access to the C compiler:
export SID_SIA_USE_COMPILER=GCC64
export SID_SIA_COMPILER_PATH=/usr/bin/gcc
export QT_QPA_PLATFORM=offscreen
- Optional:
To configure the server to use a Docker container, do the following:
You can execute the simulation process in a Docker container. The used Docker image
must include a C compiler, as the compilation of the model and then the simulation is used
within the Docker container.
-
Specify the following environment variable with the name of the Docker image, using
the command: export SID_SIA_CONTAINER=gcc:9.3.0
-
Specify the environment variable for the compiler using the command:
export SID_SIA_COMPILER_PATH=/usr/lib64/ccache/cc
The GCC part in the Docker image is usually in
/usr/lib64/ccache/cc. Note:
You must double-check for the Docker
image that this path is used. This means that you must specify the above environment
variable for the compiler accordingly.
-
Enter the following single-line command to start the server:
/usr/DassaultSystemes/SystemsSimulation/linux_a64/code/bin/EKHypervisor start
"/usr/DassaultSystemes/SystemsSimulation/SystemsSimulationConfig.json"
-listenOnWebSocket
The console displays the following message:
Using HypervisorSettings file ‘/usr/DassaultSystemes/SystemsSimulation/SystemsSimulationConfig.json’
Listening on socket port '8080'
Listening on websocket port '2097'
Result: You can now start the web applications. Note:
For convenience,
you may create a script that starts the server´s hypervisor. In the following template,
replace the values in bold (the first value is myUser) according to
your setup:#!/bin/sh
if [ "$(ps -ef | grep EKHyperv | grep -v grep)" == "" ]
then
echo "Starting EKHypervisor as user myUser"
su - myUser -c "export SID_SIA_USE_COMPILER=GCC64; export SID_SIA_COMPILER_PATH=/usr/bin/gcc;
export LD_LIBRARY_PATH=/usr/DassaultSystemes/SystemsSimulation/linux_a64/code/bin; export QT_QPA_PLATFORM=offscreen;
export DSL_AUTHORIZED_EVEN_IF_NOT_INSTALLED=TRUE; cd /usr/DassaultSystemes/SystemsSimulation;
/usr/DassaultSystemes/SystemsSimulation/linux_a64/code/bin/EKHypervisor
start /usr/DassaultSystemes/SystemsSimulation/SystemsSimulationConfig.json -listenOnWebSocket"
else
echo "EKHypervisor is already running"
netstat -tupln | grep EKHyperv
fi
In case your server reboots regularly, you may want to run such a script
automatically when the server restarts.
|