Interpolation Sweep as a Function of Five Arguments

Please login with a confirmed email address before reporting spam

Good day,

I am working on a model with two steps; in the first model I investigate the eigenmodes and eigenfrequencies of a system and subsequently export the parameters of interest together with these values into a .csv-file.

In the second model I want to import these values using the interpolation function, which is limited to 3 arguments (x, y, z). This works fine in the case of a singular combination of one eigenmode and its corresponding eigenfrequency.

Initially I tried to index both these eigenvalues and interpolate using 5 arguments, but this isn't possible in the current version. I tried working with smaller sets to see whether anything was possible, but all values have to be defined as i.e. frequency(x,y,z) and not frequency(x,y,z,a,b). I also assume that nesting these isn't possible either. But the full .csv file contains a total of 1500 combinations, so how do I sweep over all of those in a single model and extract the results?


4 Replies Last Post 30.10.2024, 06:21 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 weeks ago 28.10.2024, 10:17 GMT-4

Hello Ben,

Have you considered performing the two steps in a single file? This would eliminate the need to export and import the data and thereby circumvent the issue that interpolation functions can only take 3 arguments.

Best,

Jeff

-------------------
Jeff Hiller
Hello Ben, Have you considered performing the two steps in a single file? This would eliminate the need to export and import the data and thereby circumvent the issue that interpolation functions can only take 3 arguments. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 3 weeks ago 29.10.2024, 08:42 GMT-4

Hello Jeff,

That could be a possibility, however, the first step is in a more simplified environment. It takes a singular geometry element identical from the full model in the 2nd simulation and determines the eigenmodes and -frequencies. The 2nd step then introduces vacuum surrounding the geometry and a second element next to it, in order to investigate the effect of the movement of first element on the second element.

Right now I then map the displacement and electric potential to this element in the second model and then investigate the results. I do not know how I could then sweep across the values found for the eigenmodes and -frequencies, and subsequently export the wanted values from this in a singular model.

At the moment I am considering a batch sweep, I then split the export file into separate files containing a singular combination of the modes and frequencies. Hopefully you may know some steps that I could consider that may simplify my current approach.

Kind regards,

Ben

Hello Jeff, That could be a possibility, however, the first step is in a more simplified environment. It takes a singular geometry element identical from the full model in the 2nd simulation and determines the eigenmodes and -frequencies. The 2nd step then introduces vacuum surrounding the geometry and a second element next to it, in order to investigate the effect of the movement of first element on the second element. Right now I then map the displacement and electric potential to this element in the second model and then investigate the results. I do not know how I could then sweep across the values found for the eigenmodes and -frequencies, and subsequently export the wanted values from this in a singular model. At the moment I am considering a batch sweep, I then split the export file into separate files containing a singular combination of the modes and frequencies. Hopefully you may know some steps that I could consider that may simplify my current approach. Kind regards, Ben

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 3 weeks ago 29.10.2024, 11:21 GMT-4
Updated: 3 weeks ago 29.10.2024, 11:53 GMT-4

Ben,

Maybe the general approach illustrated by the attached file could work for your case. Notice how the two physics interfaces are applied to different subsets of the geometry (they could overlap, if needed, though they don't here) and the second physics uses the results of the first physics (for BCs).

Jeff

-------------------
Jeff Hiller
Ben, Maybe the general approach illustrated by the attached file could work for your case. Notice how the two physics interfaces are applied to different subsets of the geometry (they could overlap, if needed, though they don't here) and the second physics uses the results of the first physics (for BCs). Jeff


Please login with a confirmed email address before reporting spam

Posted: 3 weeks ago 30.10.2024, 06:21 GMT-4

I think that this approach could work, and I will look into it a bit more later and try the physics interfaces that I require. But the variables that I want to sweep over are also results from the first study; in this case they are the eigenmodes and frequencies from the singular component of the first step, and the second step will then be a Frequency Domain study.

I think that this approach could work, and I will look into it a bit more later and try the physics interfaces that I require. But the variables that I want to sweep over are also results from the first study; in this case they are the eigenmodes and frequencies from the singular component of the first step, and the second step will then be a Frequency Domain study.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.