Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jan 17, 2019, 8:55 a.m. EST
COMSOL's graphical user interface is interpreted, so that in the various text fields where you specify your physics you can type in expressions that depend on variables, coordinates, and (most important for you, Maria), time. Time is "t". So you can type a mathematical expression of you choice involving "t" to have a load evolve with time. Note that many advanced mathematical functions are preimplemented for you, see the Component > Definitions > Functions nodes.
Best,
Jeff
-------------------
Jeff Hiller
COMSOL's graphical user interface is interpreted, so that in the various text fields where you specify your physics you can type in expressions that depend on variables, coordinates, and (most important for you, Maria), time. Time is "t". So you can type a mathematical expression of you choice involving "t" to have a load evolve with time. Note that many advanced mathematical functions are preimplemented for you, see the Component > Definitions > Functions nodes.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jan 17, 2019, 11:19 a.m. EST
COMSOL's graphical user interface is interpreted, so that in the various text fields where you specify your physics you can type in expressions that depend on variables, coordinates, and (most important for you, Maria), time. Time is "t". So you can type a mathematical expression of you choice involving "t" to have a load evolve with time. Note that many advanced mathematical functions are preimplemented for you, see the Component > Definitions > Functions nodes.
Best,
Jeff
Thank you for your kind attention, Jeff.
I tried to define a piecewise function, but the result was the following:
"The following feature has encountered a problem:
-feature: undefined value found in the stiffness matrix.
Undefined value found.
-detail: undefined value found in the stiffness matrix.
I defined the variable g with the expressione x/t^2, in order to obtain the correct unit, and maybe for this reason I obtain some result that are undefined.
So I don't know how to solve this problem.
Could you help me? I'm not able to realize which is the error.
Thank you so much,
Maria
>COMSOL's graphical user interface is interpreted, so that in the various text fields where you specify your physics you can type in expressions that depend on variables, coordinates, and (most important for you, Maria), time. Time is "t". So you can type a mathematical expression of you choice involving "t" to have a load evolve with time. Note that many advanced mathematical functions are preimplemented for you, see the Component > Definitions > Functions nodes.
>
>Best,
>
>Jeff
Thank you for your kind attention, Jeff.
I tried to define a piecewise function, but the result was the following:
"The following feature has encountered a problem:
-feature: undefined value found in the stiffness matrix.
Undefined value found.
-detail: undefined value found in the stiffness matrix.
I defined the variable g with the expressione x/t^2, in order to obtain the correct unit, and maybe for this reason I obtain some result that are undefined.
So I don't know how to solve this problem.
Could you help me? I'm not able to realize which is the error.
Thank you so much,
Maria
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jan 17, 2019, 11:37 a.m. EST
Updated:
6 years ago
Jan 17, 2019, 1:13 p.m. EST
H Maria,
A couple of thoughts:
* The problem mau come from the division by zero at t=0 for your variable g=x/t^2.
* Also, when you specify a function (as opposed to a variable), you need to pass arguments to it when you use it. So, say you define a function called myfunction which is a function of x and t, you need to use the syntax myfunction(x,y) to use it somewhere else in your model.
If that does not resolve the problem, I'll invite you to send your model file (.mph file) to the COMSOL support team, support@comsol.com, with a mention of this Discussion Forum thread. That's the more appropriate environment to get support questions handled by COMSOL support staff and it brings in resources at our end not available in the Discussion Forum.
Thanks,
Jeff
-------------------
Jeff Hiller
H Maria,
A couple of thoughts:
* The problem mau come from the division by zero at t=0 for your variable g=x/t^2.
* Also, when you specify a function (as opposed to a variable), you need to pass arguments to it when you use it. So, say you define a function called myfunction which is a function of x and t, you need to use the syntax myfunction(x,y) to use it somewhere else in your model.
If that does not resolve the problem, I'll invite you to send your model file (.mph file) to the COMSOL support team, support@comsol.com, with a mention of this Discussion Forum thread. That's the more appropriate environment to get support questions handled by COMSOL support staff and it brings in resources at our end not available in the Discussion Forum.
Thanks,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jan 17, 2019, 11:57 a.m. EST
Thanks a lot Jeff, you have been so kind and your support has been important for me.
I resolved my problem now.
Thank you again,
Maria
Thanks a lot Jeff, you have been so kind and your support has been important for me.
I resolved my problem now.
Thank you again,
Maria