Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

solving PDE with source term (right-hand side) as matrix from MATLAB

Please login with a confirmed email address before reporting spam

hi, all

I am trying to use coefficient from PDE to solve helmholtz type partial differential equation.
(I know there is helmholtz equation, but both module doesn't working)

So, first I am using COMSOL 4.4 with MATLAB, and I follow the instruction as following link to use MATLAB function as source. (www.comsol.kr/support/knowledgebase/1093/)

since the input matrix is 20x60, I discretized my geometry into 1200 elements,
The problem is after i meshed my geometry, COMSOL continuously says as following

The following feature has encountered problem:
Incorrect size of returned vector, 2000 elements were expected, but the returned matrix was 20x60
- Function: f
- Feature: Stationary Solver 1 (sol1/s1)

So, I have tried 20x100 matrix, then COMSOL says
The following feature has encountered problem:
Incorrect size of returned vector, 400 elements were expected, but the returned matrix was 20x100
- Function: f
- Feature: Stationary Solver 1 (sol1/s1)

any help or comments will be appreciated

0 Replies Last Post 29.01.2015, 05:13 GMT-5
COMSOL Moderator

Hello Youngsuk Jung

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.