Hi all, I'm using the API to run my COMSOL model multiple times in a loop in MATLAB with different initial and boundary conditions.
I was just wondering if it would be possible to set the initial conditions from the last time step of the previous solution, and the boundary conditions as the time varying value of one of the independent variables at the last node point in my mesh.
The problem is one dimensional, and writing the conditions in as a polynomial function using polyval isn't ideal as this seems to produce ill conditioned polynomials with the data I have.
Basically, can you specify the initial and boundary conditions as arrays of values corresponding to either time steps or locations?
I was just wondering if it would be possible to set the initial conditions from the last time step of the previous solution, and the boundary conditions as the time varying value of one of the independent variables at the last node point in my mesh.
The problem is one dimensional, and writing the conditions in as a polynomial function using polyval isn't ideal as this seems to produce ill conditioned polynomials with the data I have.
Basically, can you specify the initial and boundary conditions as arrays of values corresponding to either time steps or locations?