Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

How to work on the interface of COMSOL and YADE in UBUNTU?

Please login with a confirmed email address before reporting spam

Hello I have a question, I want to work on ICY which is the interface between COMSOL and YADE. But when I want to run COMSOL from terminal, and I wrote "comsol mphserver" on teminal, I get this "comsol: command not found" how can I solve this? and when I want to work on python, in terminal I put "python server.py" but it gives me this error" Command 'python' not found, did you mean: command 'python3' from deb python3 command 'python' from deb python-is-python3" Then I put his command on terminal "python3 server.py" and then it gives me this error "File "/home/geology/Downloads/verification codes training/client-server/server.py", line 39 print 'command: '+command ^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?". How can I solve these problems.


1 Reply Last Post 3 févr. 2023, 11:34 UTC−5
Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 3 févr. 2023, 11:34 UTC−5

I am not a COMSOL employee, so I am not aware of all the possible external interfaces that might be available that I have not seen. That said, it is my understanding that COMSOL provides external programming interfaces for MATLAB and JAVA, and I have used both. In the open-source arena that you are seeking (I am a Linux user as well), JAVA would be your choice, or if you have a MATLAB paid license for your Linux platform, you can go that route also. Then if you want to use python and/or YADE, and/or ICY, that is a product developed externally to COMSOL by other parties. I would also like to understand why one would be interested in mixing a finite-element method (FEM) with a discrete-element method (DEM). Specifically, I would be interested in advantages that the DEM has over the FEM.

-------------------
James D. Freels, Ph.D., P.E.
I am not a COMSOL employee, so I am not aware of all the possible external interfaces that might be available that I have not seen. That said, it is my understanding that COMSOL provides external programming interfaces for MATLAB and JAVA, and I have used both. In the open-source arena that you are seeking (I am a Linux user as well), JAVA would be your choice, or if you have a MATLAB paid license for your Linux platform, you can go that route also. Then if you want to use python and/or YADE, and/or ICY, that is a product developed externally to COMSOL by other parties. I would also like to understand why one would be interested in mixing a finite-element method (FEM) with a discrete-element method (DEM). Specifically, I would be interested in advantages that the DEM has over the FEM.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.