Replies: 1 comment
-
Yes. Other dataset types are not supported. The idea was discussed in issue #26, but has since been abandoned. You can define an appropriate integration coupling operator in the model, one that operates on your (non-solution) dataset. The result is then available as a global evaluation in the default dataset and can thus be retrieved with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I simulated the electric field strength of the transmission line using COMSOL and wanted to use the evaluate function to calculate the electric field strength value at a three-dimensional intersection point (three-dimensional intersection point 2), but the code reported an error: Dataset "three-dimensional intersection point 2" does not refer to a solution. Does the dataset parameter of the evaluate function have to come from a solution? Here is my code and mph model file.
'import mph
def export_electric_field(model_path, output_file):
try:
# 启动 COMSOL 客户端
client = mph.start(cores=1)
print("COMSOL 客户端启动成功。")
if name == "main":
model_file_path = "/home/icebear/comsol/mphs/powerline.mph"
output_file = "electric_field_data.txt"
export_electric_field(model_file_path, output_file)'
comsol mph model file: powerline.mph
Beta Was this translation helpful? Give feedback.
All reactions