Replies: 3 comments
-
I did all that by setting up the initial conditions under the COMSOL GUI and then saving as M file. Then you can take out the MATLAB code that sets up the initial conditions and port it to Python very easily. Same can be done by saving as Java and porting the Java code to Python. |
Beta Was this translation helpful? Give feedback.
-
OK! Thanks again for your reply, I will try it. |
Beta Was this translation helpful? Give feedback.
-
This should be a perfect use case. Just build your model using mph or the GUI (whatever suits you better). Probably include an export node. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I recently wanted a way to automate the simulation of comsol files with different initial conditions under the same operating conditions. I tried to use the shell script under Linux, but it doesn't seem to work, so can MPh set different initial conditions?
Note: For example, for a plasma simulation program, under the same working condition, by setting different initial electron densities, initial electron average energy, and potential, assuming that 10,000 initial conditions are determined, how to realize automatic operation?
Thank you very much!
Pw L
Beta Was this translation helpful? Give feedback.
All reactions