Hello COMSOL Community,
I want to simulate a Laser Process (heating of a metal sheet) using an arbitrary intensity distribution. The models in the database or the ones discussed in the forum do either base on gaussian or top-hat intensity distribution.
One option is to describe the intensity distribution using analytical functions in COMSOL. In the end this is complicated, at the point when you have to combine different functions for the desired intensity distribution. Besiedes this, the normalization of the heatflux requires an integration and I assume this will lead to an increasing computation time.
I would like to use a description of the intensity distribution from MATLAB by integrating a MATLAB-function in the global definitions of the COMSOL model (see attached files). Of course MATLAB delivers a Matrix I(x,y)> but COMSOL somehow can´t deal with it since the following error occurs:
Failed to find consistent initial values.
Incorrect size of returned vector. 1 elements were expected, but the returned matrix was 301 x 601
Function: funcpl
Last time step is not converged.
- Feature: Time-Dependent Solver 1 (sol1/t1)
Can anybody help me with this issue?
I am also thankful for other approaches in order implement arbitrary intensity distributions.
Best Whishes
Martin
I want to simulate a Laser Process (heating of a metal sheet) using an arbitrary intensity distribution. The models in the database or the ones discussed in the forum do either base on gaussian or top-hat intensity distribution.
One option is to describe the intensity distribution using analytical functions in COMSOL. In the end this is complicated, at the point when you have to combine different functions for the desired intensity distribution. Besiedes this, the normalization of the heatflux requires an integration and I assume this will lead to an increasing computation time.
I would like to use a description of the intensity distribution from MATLAB by integrating a MATLAB-function in the global definitions of the COMSOL model (see attached files). Of course MATLAB delivers a Matrix I(x,y)> but COMSOL somehow can´t deal with it since the following error occurs:
Failed to find consistent initial values.
Incorrect size of returned vector. 1 elements were expected, but the returned matrix was 301 x 601
Function: funcpl
Last time step is not converged.
- Feature: Time-Dependent Solver 1 (sol1/t1)
Can anybody help me with this issue?
I am also thankful for other approaches in order implement arbitrary intensity distributions.
Best Whishes
Martin