Check /usr/local/comsol40a - if the files are there, they have installed it.
However, that is not in the path, so the comsol installer would have to
take some further steps in order for you to find the executable in your
path.
Typically, vendors who install to non-standard locations have to fix it
up in one of two ways:
1. Edit either your personal profile or the system profile and add the
folders to the path.
2. Make a symbolic link from their binary in /usr/local/bin or other dir
in the path.
All you need to do is find the binary under /usr/local/comsol40a, and
either add to the path the directory it is in, or make a symlink to it
in /usr/local/bin, or make a script call "comsol" to place in
/usr/local/bin which does something like this:
----------------
#!/bin/bash
cd /usr/local/comsol40a/bin
./comsol
-----------------
or similar, to get it to work.