Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
15 ott 2021, 09:38 GMT-4
Updated:
3 years ago
15 ott 2021, 10:43 GMT-4
Hello Vincenzo,
Simply call the variable by its name in a mathematical expression. There's nothing to it.
Jeff
-------------------
Jeff Hiller
Hello Vincenzo,
Simply call the variable by its name in a mathematical expression. There's nothing to it.
Jeff
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
16 ott 2021, 13:12 GMT-4
Thanks for reply,
i don't get where i can find mathematical expression, is it a module?
Vincenzo
Thanks for reply,
i don't get where i can find mathematical expression, is it a module?
Vincenzo
Acculution ApS
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
18 ott 2021, 05:04 GMT-4
A lot of variables exist within COMSOL, so if you have solved for a velocity, and it is called 'u' then you can write something as a function of u as 'somefunction(5u)' or whatever. You might have to call it more specifically as 'comp1.u' but try it out with some simple examples.
-------------------
René Christensen, PhD
Acculution ApS
www.acculution.com
info@acculution.com
A lot of variables exist within COMSOL, so if you have solved for a velocity, and it is called 'u' then you can write something as a function of u as 'somefunction(5u)' or whatever. You might have to call it more specifically as 'comp1.u' but try it out with some simple examples.
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
18 ott 2021, 12:15 GMT-4
There are two approaches I use to avoid hunting through the documentation:
- Look at the list of quantities available for plotting or evaluation.
- Print a report (I usually use intermediate). Absurdly long but contains an exhaustive list of principal and derived quantities.
There are two approaches I use to avoid hunting through the documentation:
1. Look at the list of quantities available for plotting or evaluation.
2. Print a report (I usually use intermediate). Absurdly long but contains an exhaustive list of principal and derived quantities.
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
19 ott 2021, 06:52 GMT-4
Thanks so much to everyone,
i probably didn't explain properly what i meant, i want extrapolate the velocity field "u" as an equation in term of x,y,z,t [for example in stationary state: u=0.2(1-(y/0.0025)^2)(1-(z/0.0025)^2)].
That's will help to reduce the time required for the compilation in an another model (bigger) in which i don't wanna put the laminar flow module.
There are two approaches I use to avoid hunting through the documentation:
- Look at the list of quantities available for plotting or evaluation.
- Print a report (I usually use intermediate). Absurdly long but contains an exhaustive list of principal and derived quantities.
This kind of approach look nice, i should just figure out , thanks so much
Regards,
Vincenzo
Thanks so much to everyone,
i probably didn't explain properly what i meant, i want extrapolate the velocity field "u" as an equation in term of x,y,z,t [for example in stationary state: u=0.2*(1-(y/0.0025)^2)*(1-(z/0.0025)^2)].
That's will help to reduce the time required for the compilation in an another model (bigger) in which i don't wanna put the laminar flow module.
>There are two approaches I use to avoid hunting through the documentation:
>
>1. Look at the list of quantities available for plotting or evaluation.
>2. Print a report (I usually use intermediate). Absurdly long but contains an exhaustive list of principal and derived quantities.
This kind of approach look nice, i should just figure out , thanks so much
Regards,
Vincenzo
Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
19 ott 2021, 07:43 GMT-4
Hi Vincenzo,
To define an analytical expression for the velocity in terms of x, y, z, and t (in 3D), you can simply use x
, y
, z
, and t
, which are predefined independent variables in a 3D Cartesian COMSOL Multiphysics model, along with any scalar numbers and mathematical operators and functions that are available in COMSOL Multiphysics. You could use the expression that you used as an example above in one of the velociy field's components as
0.2[m/s]*(1-(y[1/m]/0.0025)^2)*(1-(z[1/m]/0.0025)^2)
What I have changed is that you must use explicit multiplication symbols (*
), and I also made the expression return a velocity in m/s using the unit syntax in COMSOL Multiphysics.
Best regards,
Magnus
Hi Vincenzo,
To define an analytical expression for the velocity in terms of x, y, z, and t (in 3D), you can simply use `x`, `y`, `z`, and `t`, which are predefined independent variables in a 3D Cartesian COMSOL Multiphysics model, along with any scalar numbers and mathematical operators and functions that are available in COMSOL Multiphysics. You could use the expression that you used as an example above in one of the velociy field's components as
`0.2[m/s]*(1-(y[1/m]/0.0025)^2)*(1-(z[1/m]/0.0025)^2)`
What I have changed is that you must use explicit multiplication symbols (`*`), and I also made the expression return a velocity in m/s using the unit syntax in COMSOL Multiphysics.
Best regards,
Magnus