Please login with a confirmed email address before reporting spam
Posted:
3 years ago
12 nov 2021, 12:58 GMT-5
Updated:
3 years ago
12 nov 2021, 12:58 GMT-5
Well, it seems I found a way after some struggle. Although a bit counterintuitive.
The reference says that standard Model Input(s) to a Material such as "Frequency" are automatically taken from the context (physics interface). In this case, I configured the physics interface to retrieve the frequency from the solver. But for some reason the information is not passed on. Even if I manually configure the mesh, the solver complains about "freq" not found when preparing the material matrix.
Apparently, one has to go to "Global Definitions > Default Model Inputs", then right click on "Frequency" and then "Create Model Input". Then, in "Component > Definitions > Shared Properties > Model Input", ones has to write "freq" in the field for frequency.
That one has to explicit "freq" does not seem to be the desired behavior (at least according to the reference). Shouldn't COMSOL already pick the value from the solver? Maybe a bug?
Best,
/Max
Well, it seems I found a way after some struggle. Although a bit counterintuitive.
The reference says that standard Model Input(s) to a Material such as "Frequency" are automatically taken from the context (physics interface). In this case, I configured the physics interface to retrieve the frequency from the solver. But for some reason the information is not passed on. Even if I manually configure the mesh, the solver complains about "freq" not found when preparing the material matrix.
Apparently, one has to go to "Global Definitions > Default Model Inputs", then right click on "Frequency" and then "Create Model Input". Then, in "Component > Definitions > Shared Properties > Model Input", ones has to write "freq" in the field for frequency.
That one has to explicit "freq" does not seem to be the desired behavior (at least according to the reference). Shouldn't COMSOL already pick the value from the solver? Maybe a bug?
Best,
/Max
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
16 nov 2021, 04:27 GMT-5
Dear Max,
As you experienced, the Physics-controlled mesh sequence type cannot handle arbitrary function definitions. However, functions similar to those in the Optics and RF material libraries, defined under the material property group with a single input parameter, can be parsed. Thus, in your case, you could move the function to appear below the Water>Basic property group and then only keep the frequency input argument. The other Debye model constants could be defined as parameters in a separate parameter group (just to separate them from any other parameters). Notice also that the checkbox May produce complex output for real arguments, found in the Advanced section for the function, should be checked.
I attach an updated version of your model.
Best regards,
Ulf Olin
Dear Max,
As you experienced, the Physics-controlled mesh sequence type cannot handle arbitrary function definitions. However, functions similar to those in the Optics and RF material libraries, defined under the material property group with a single input parameter, can be parsed. Thus, in your case, you could move the function to appear below the Water>Basic property group and then only keep the frequency input argument. The other Debye model constants could be defined as parameters in a separate parameter group (just to separate them from any other parameters). Notice also that the checkbox May produce complex output for real arguments, found in the Advanced section for the function, should be checked.
I attach an updated version of your model.
Best regards,
Ulf Olin