Start and Stop the Coupling Server

By default, EDEM will launch with the Coupling Server stopped and requires you to start the server before a coupled simulation can proceed.

To start and stop the Coupling Server:
For running in batch mode or for further automating the process, you can launch EDEM with the Coupling Server already running by adding the ‘--cs’ switch to the command line.




  • The coupling will connect on a random port. If you want to specify the port used for the coupling, enter a value in the coupling box.
    Note: To use user-specified ports, the coupling must be updated, and you must specify a port on the client side as well.
C++ Coupling
  • The flag –cs-port followed by a specific port will start the coupling server using this flag.
  • The ports will only allow connection on ports in the range of 32768 to 65535.
  • If both --cs and --cs-port are specified, --cs-port will take precedence.
Python Coupling
  • When connecting to the coupling using the command connectCoupling(), you can specify a port number.
  • If you do not specify a port number, a number between 0 and 32969 will be used.