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.
Call a function in "mesh size" node
Posted 21 apr 2011, 18:47 GMT-4 Version 4.1 5 Replies
Please login with a confirmed email address before reporting spam
It is a very simple test model:
A fluid flows in a rectangular 2-d channel (from the left to the rigth).
Global ->Parameters : H = 0.1 (it is the heigth of the channel)
Mesh ->Size -> Maximum element size : H
It works. But if I define a function
model ->analytic : myfun(x) = x/10
Mesh ->Size -> Maximum element size : myfun(H)
It doesnt works. I think that it means that a Mesh cannot be defined by a function. I tried to enter
Mesh ->Size -> Maximum element size : max(H)
and it didnt work. Can you confirm that a mesh cannot be defined with functions ? Is there a way to define a mesh with a complicated function of a global parameter ? (e.g, piecewise function of H)
Thank you.
A fluid flows in a rectangular 2-d channel (from the left to the rigth).
Global ->Parameters : H = 0.1 (it is the heigth of the channel)
Mesh ->Size -> Maximum element size : H
It works. But if I define a function
model ->analytic : myfun(x) = x/10
Mesh ->Size -> Maximum element size : myfun(H)
It doesnt works. I think that it means that a Mesh cannot be defined by a function. I tried to enter
Mesh ->Size -> Maximum element size : max(H)
and it didnt work. Can you confirm that a mesh cannot be defined with functions ? Is there a way to define a mesh with a complicated function of a global parameter ? (e.g, piecewise function of H)
Thank you.
5 Replies Last Post 23 apr 2011, 16:19 GMT-4