Quantcast
Channel: COMSOL Forums: Tip: Batch calculations with Matlab + Comsol 4.0a
Browsing all 44 articles
Browse latest View live

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

This is a very good tip, i just need it to solve my problem, but as i tried as you suggested. the command $comsol server < /dev/null > /dev/null & does work, while after running this command,...

View Article



Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Make sure that you have your COMSOL40a\mli directory added to the Matlab path.

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

This is a great tip! Perhaps one step better, for people running OSX - I've saved the whole thing into it's own symbolic link. Navigate to /usr/bin, create a file with the text editor of your choice (I...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

I won't say it is a cleaner way, but it is more 'transparent' so to say for many people to start comsol's server like this: comsol server > server.txt & This way whatever output comsol server...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Good tip, that also works for Comsol 4.1 But nevertheless: very inconvenient to be honest.. Hopefully there is a better solution in the next version.

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Thank you very much, Charles! I've been trying to run Comsol 4.0a in batch mode on our cluster for like a year (periodically dropping it and coming back to it again and involving our cluster and comsol...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi Charles, Do you have any idea of running batch process on windows? I have two files and I want to run them one by one in the way that results of one should be used as initial conditions for the...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi Muhammad, Sorry, I cannot really help you with running batch calculations under Windows. I mainly use my employer-issued Windows laptop as a glorified email client, and therefore don't have much...

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Thanks a lot Charles for your feedback! I have defined the second study step in the same file but could not find any option in the second study to set the results of first study as initial...

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

The above worked for me on 4.2a. Useful tips, many thanks. Saved me a wasting an afternoon.

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi, I hope this thread is still active. I am having big troubles in implementing your suggestions. I prepared a run_script.sh file with: #!/bin/sh comsol server </dev/null > /dev/null & bsub...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi Stefano Just to be sure, did you start the comsol server at least once on the node? The first time you start it, you need to (interactively ) setup a username/password. As far as I know, this cannot...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

actually, problem solved. There was a mistake in my file. Thanks for the answer anyway.

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi Stefano, does your script also work when it is started multiple times? I'm wondering if this is possible without setting a distinct port in order to connect an instance of MATLAB with a certain...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi Eli, I haven't being launching simulations from matlab in a while, so I had to go back to old scripts :) I simply launched the following script #!/bin/sh comsol server </dev/null > /dev/null...

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi, thank you fopr providing this. I use something similar, but because I want to run many models in parallel, there are lots of MATLAB instances and Comsol servers running at the same time. In order...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

If you don't specify the port number Comsol will create a server with the default port number 2036. If that's already busy It will use 2037 and so on. I am not specifying the port number and that seems...

View Article


Re: Tip: Batch calculations with Matlab + Comsol 4.0a

If I open several instances of MATLAB and Comsol server in a sequence without giving MATLAB a distinct port to connect to, it might happen that e.g. two MATLABs connect to the same Comsol server. This...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi, I am not sure whether the post is still active. I tried the following in out linux server: #!/bin/sh comsol server </dev/null >/dev/null & matlab -nodesktop -nosplash -r...

View Article

Re: Tip: Batch calculations with Matlab + Comsol 4.0a

Hi, I am not sure whether the post is still active. I tried the following in out linux server: #!/bin/sh comsol server </dev/null >/dev/null & matlab -nodesktop -nosplash -r...

View Article
Browsing all 44 articles
Browse latest View live




Latest Images