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.
numerical derivatives
Posted 28.05.2015, 06:24 GMT-4 Interfacing, LiveLink for MATLAB, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 5.0 1 Reply
Please login with a confirmed email address before reporting spam
Dear pros,
this should be simple, yet I have not succeeded in implementing this in COMSOL and could not find any relevant instructions anywhere.
I use COMSOL to process experimentally obtained and thus known velocity fields.
I refer to a Matlab function via livelink which COMSOL then uses to assign a variable named u (in the Component Definitions) its values. This works fine, I can trace the variable u and get the proper field.
The PDEs I further need to solve however don't just use u, but also its derivatives as known terms. I don't want to calculate those derivatives in Matlab but use COMSOL which should be capable of deriving a known field on its own mesh. So ... what I need is a module that will just calculate the space derivatives of a known field numerically, but I was not able to find any such module in the physics section.
The Coefficient PDE physics interface seemed promising at first, but it's actually just the wrong way around, because it will calculate u, though my unknown is f:
\beta \nabla u = f
Thank you very much in advance.
this should be simple, yet I have not succeeded in implementing this in COMSOL and could not find any relevant instructions anywhere.
I use COMSOL to process experimentally obtained and thus known velocity fields.
I refer to a Matlab function via livelink which COMSOL then uses to assign a variable named u (in the Component Definitions) its values. This works fine, I can trace the variable u and get the proper field.
The PDEs I further need to solve however don't just use u, but also its derivatives as known terms. I don't want to calculate those derivatives in Matlab but use COMSOL which should be capable of deriving a known field on its own mesh. So ... what I need is a module that will just calculate the space derivatives of a known field numerically, but I was not able to find any such module in the physics section.
The Coefficient PDE physics interface seemed promising at first, but it's actually just the wrong way around, because it will calculate u, though my unknown is f:
\beta \nabla u = f
Thank you very much in advance.
1 Reply Last Post 29.05.2015, 02:14 GMT-4