I think you guys are on to the right track, but will ultimately be
limited by the number of licenses you have.
The fastest form you can get your code into is to use the Comsol
Multiphysics API (advanced programming interface) that creates
compiled Java object code. It needs the Comsol Multiphysics
libraries, and the fem solvers (femtime, femnlin, femlin, etc.)
all check for a license when they are called.
femlab 2.3i was more permissive. I managed to use the matlab
compiler to compile the matlab script that called femlab functions
to C, and then use the gcc compiler to compile a portable code
across my linux cluster. The matlab compiler stage generates
several errors that I "fixed" by commenting out the offending
lines of the matlab source code of femlab.
This does not work with Comsol Multiphysics. You can try it, but
everything "java" crashes, and you cannot get access to the source
code (compiled libraries).
So if you really need standalone, use the API. There is still the
license issue ... A company that I work with uses the API for an add-
on module to their software product (which is otherwise in C). They
have achieved standalone, and negotiated a re-licensing arrangement
with Comsol. Since the end-users of the software package will only
ever be solving one particular CMphys model or variants of it, their
is an argument for a reduced price, limited license. But users who
want to try this should certainly discuss pricing of the limited usage
license with their Comsol sales office. I met with this company
today, and they haven't yet decided whether to market this additional
module. There is a simpler model coded in C which has no
hydrodynamics that is quicker to use than the CFD-like model.
If they eventually decide to go with the Comsol produced add-on
module (I think they might go with both eventually), then I'll
suggest that get an article in the Comsol News next year.
I have six floating licenses available on my seven processor
linux cluster. I got my colleagues to chip in for some licenses
a few years ago. Perhaps the license limitation is not easily
solvable without a budget (or in my case, colleagues who wanted
their students to have access too). So far, all sixs licenses have
been used simultaneously very rarely -- and am I the culprit!
Regards,
Will
Post by xinhui zhouI just have one license , so I can not run 2 jobs paralelly. I am
also in the early stage of using it in cluster . What I did is that
installing comsol at main node and loging into the other node and then
start the script from there. For some unknown reason, I am not able to
submit job using qsub directly to run script.
yes, use batch mode.
Post by sealyxiThank you for your information.
So what you did is to install comsol on the master node and you can
distribute your jobs to the whole cluster? That sounds exciting to
me. Do you run it from the batch mode, say write a script that
contains commands like "comsol batch job_name" and submit it to the
cluster? By the way, how many license places would it take, only one
for the cluster or depending on the number of jobs runinng?
Thanks!
Post by xinhui zhouPost by sealyxiPost by xinhui zhouXi,
I also run script in linux cluster machine with comsol32
installed at main
Post by xinhui zhounode of then cluster and license manager in my desktop. Script can
run at
Post by xinhui zhouother nodes.
Xinhui
Post by Li XiHi,
I am interested in finding the way to compile comsol scripts into
executable files that can run on any Linux machines. Right now
my simulation
Post by xinhui zhouPost by Li Xican take as long as several days and I no longer want to run the
scripts on
Post by xinhui zhouPost by Li Ximy local machine. If it is possible to compile a comsol script
(or more
Post by xinhui zhouPost by Li Xipreferably a mixed comsol and matlab script) into a executable
file, I can
Post by xinhui zhouPost by Li Ximake use of the computer cluster we have, where most of the
computing nodes
Post by xinhui zhouPost by Li Xidon't have comsol installed.
Does anyone have similar situations? Any suggestions and
experiences would
Post by xinhui zhouPost by Li Xibe appreciated. Thanks!
Li
Li Xi
Department of Chemical and Biological Engineering
University of Wisconsin-Madison
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~->