Quantcast
Channel: Solving, solving\ - Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 3988

Java NullPointerException Error

$
0
0
Hello,

I'm running a Comsol model through Matlab that consists of 10 user-defined PDEs. The process I model is cyclic, and has four steps per cycle. Each step has different boundary conditions, but the same PDEs. The model I created simulates 1 complete cycle, and I use Matlab to run the model over and over to simulate the entire process. I created the model in the Comsol GUI, and auto-generated the Matlab script. I then copy and pasted the code into my existing Matlab code. In Matlab, I have two functions that use Comsol code: (1) builds the geometry, mesh physics and sets up the studies/solutions for each step in the cycle and (2) updates the studies with time vectors and solves the model. I'm getting a Java NullPointerException error that I am unfamiliar with, and was wondering if anyone could provide insight. The error occurs in the code:
model.sol('sol1').runAll;

Thanks,
Matt

Viewing all articles
Browse latest Browse all 3988

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>