Please login with a confirmed email address before reporting spam
Posted:
6 years ago
2018年7月24日 GMT-4 10:26
Updated:
6 years ago
2018年7月24日 GMT-4 10:27
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
2018年7月24日 GMT-4 16:46
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
2018年7月24日 GMT-4 16:47
No problem, let us know if you need anything else
Good luck!
No problem, let us know if you need anything else
Good luck!