Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jul 24, 2018, 10:26 a.m. EDT
Updated:
6 years ago
Jul 24, 2018, 10:27 a.m. EDT
Hi Shengyue,
I will try to answer as much questions as I can, but my understading of COMSOL is also a bit limited.
- Do I have to define the variable T (Temperature) at the very first beginning (parameters or global variables)?
No, temperature is an intrinsic parameter of the Heat Transfer model. Be aware that COMSOL uses SI units (kelvin)
- How can I extract the Temperature results from the pde solver?
Well it depends which temperature fields you want to extract. If you want the temperature of your domain surface (the default plot that appears in the results section after you run your simulation) you can extract the values right clicking in "surface", "export plot data" (or something like that) and select a name for your file. This will give you a .txt file.
- I defined a temperature dependent specific heat as global, but I was still not able to call it when I am defining the properties of the material. How can I deal with it?
As far as I can tell, you should always define your functions (in this case the specific heat) in "model->definitions->analytic" (not sure if it correct to define it in "global definitions" but maybe someone can give you this information). In here, you have to define your function name, expression, arguments and input and output units. Because your specific heat is temperature dependent, after you define it try to use it in material as: "thenameyougave(T)". Not sure if this works, but you can try!
- Are there any ways that I can define a variable as a piecewise function? Although I define it as a piecewise function, it was still not working. What can I do if I would like to use the parameter that I defined in determing the interval for the piecewise function?
You can use boolean expressions in COMSOL and even "if" conditions. Imagine you want A to be 1 from t=0 to t=10s and 2 from t=10s onwards. You can go to "model->definitions->analytic" and define a time-dependent variable named A and an expression: 1*(t<10)+2(t>10).
Hope this helps!
Best,
Nichal
Hi Shengyue,
I will try to answer as much questions as I can, but my understading of COMSOL is also a bit limited.
- Do I have to define the variable T (Temperature) at the very first beginning (parameters or global variables)?
No, temperature is an intrinsic parameter of the Heat Transfer model. Be aware that COMSOL uses SI units (kelvin)
- How can I extract the Temperature results from the pde solver?
Well it depends which temperature fields you want to extract. If you want the temperature of your domain surface (the default plot that appears in the results section after you run your simulation) you can extract the values right clicking in "surface", "export plot data" (or something like that) and select a name for your file. This will give you a .txt file.
- I defined a temperature dependent specific heat as global, but I was still not able to call it when I am defining the properties of the material. How can I deal with it?
As far as I can tell, you should always define your functions (in this case the specific heat) in "model->definitions->analytic" (not sure if it correct to define it in "global definitions" but maybe someone can give you this information). In here, you have to define your function name, expression, arguments and input and output units. Because your specific heat is temperature dependent, after you define it try to use it in material as: "thenameyougave(T)". Not sure if this works, but you can try!
- Are there any ways that I can define a variable as a piecewise function? Although I define it as a piecewise function, it was still not working. What can I do if I would like to use the parameter that I defined in determing the interval for the piecewise function?
You can use boolean expressions in COMSOL and even "if" conditions. Imagine you want A to be 1 from t=0 to t=10s and 2 from t=10s onwards. You can go to "model->definitions->analytic" and define a time-dependent variable named A and an expression: 1*(t10).
Hope this helps!
Best,
Nichal
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jul 24, 2018, 4:46 p.m. EDT
Hi Shengyue,
I will try to answer as much questions as I can, but my understading of COMSOL is also a bit limited.
- Do I have to define the variable T (Temperature) at the very first beginning (parameters or global variables)?
No, temperature is an intrinsic parameter of the Heat Transfer model. Be aware that COMSOL uses SI units (kelvin)
- How can I extract the Temperature results from the pde solver?
Well it depends which temperature fields you want to extract. If you want the temperature of your domain surface (the default plot that appears in the results section after you run your simulation) you can extract the values right clicking in "surface", "export plot data" (or something like that) and select a name for your file. This will give you a .txt file.
- I defined a temperature dependent specific heat as global, but I was still not able to call it when I am defining the properties of the material. How can I deal with it?
As far as I can tell, you should always define your functions (in this case the specific heat) in "model->definitions->analytic" (not sure if it correct to define it in "global definitions" but maybe someone can give you this information). In here, you have to define your function name, expression, arguments and input and output units. Because your specific heat is temperature dependent, after you define it try to use it in material as: "thenameyougave(T)". Not sure if this works, but you can try!
- Are there any ways that I can define a variable as a piecewise function? Although I define it as a piecewise function, it was still not working. What can I do if I would like to use the parameter that I defined in determing the interval for the piecewise function?
You can use boolean expressions in COMSOL and even "if" conditions. Imagine you want A to be 1 from t=0 to t=10s and 2 from t=10s onwards. You can go to "model->definitions->analytic" and define a time-dependent variable named A and an expression: 1*(t10).
Hope this helps!
Best,
Nichal
Dear Nichal,
Thank you very much for your detailed explanation!! I will try!
Thank you very much!
Best regards,
Shengyue Shan
>Hi Shengyue,
>
>I will try to answer as much questions as I can, but my understading of COMSOL is also a bit limited.
>
>- Do I have to define the variable T (Temperature) at the very first beginning (parameters or global variables)?
>
>No, temperature is an intrinsic parameter of the Heat Transfer model. Be aware that COMSOL uses SI units (kelvin)
>
>- How can I extract the Temperature results from the pde solver?
>
>Well it depends which temperature fields you want to extract. If you want the temperature of your domain surface (the default plot that appears in the results section after you run your simulation) you can extract the values right clicking in "surface", "export plot data" (or something like that) and select a name for your file. This will give you a .txt file.
>
>- I defined a temperature dependent specific heat as global, but I was still not able to call it when I am defining the properties of the material. How can I deal with it?
>
>As far as I can tell, you should always define your functions (in this case the specific heat) in "model->definitions->analytic" (not sure if it correct to define it in "global definitions" but maybe someone can give you this information). In here, you have to define your function name, expression, arguments and input and output units. Because your specific heat is temperature dependent, after you define it try to use it in material as: "thenameyougave(T)". Not sure if this works, but you can try!
>
>- Are there any ways that I can define a variable as a piecewise function? Although I define it as a piecewise function, it was still not working. What can I do if I would like to use the parameter that I defined in determing the interval for the piecewise function?
>
>You can use boolean expressions in COMSOL and even "if" conditions. Imagine you want A to be 1 from t=0 to t=10s and 2 from t=10s onwards. You can go to "model->definitions->analytic" and define a time-dependent variable named A and an expression: 1*(t10).
>
>Hope this helps!
>
>Best,
>Nichal
Dear Nichal,
Thank you very much for your detailed explanation!! I will try!
Thank you very much!
Best regards,
Shengyue Shan
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Jul 24, 2018, 4:47 p.m. EDT
No problem, let us know if you need anything else
Good luck!
No problem, let us know if you need anything else
Good luck!