Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How do I map an imported variable to a field function?
Posted May 20, 2024, 5:32 a.m. EDT General, Acoustics & Vibrations, Computational Fluid Dynamics (CFD) Version 6.1 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I am working on aero-acoustic simulation and I have the CFD results from COMSOL. I am now trying to run the acoustic model (LNSF) and wish to add impedance condition on a particular boundary. I have set up the boundary condition for the same.
The simulation is run over a frequency range and each value of frequercy has it's unique impedance value that i've obtained from a different calculation and wish to integrate it in the simulation.
I want the 1st value of impedance to match the 1st value of frequency and so on. I've defined the frequency as a range function i.e, range(f1,n,fn). Since the impedance values are comples, I've imported them using 2 integration functions for the respective imaginary and real parts and created the a variable.
How do i ensure that the values of imepdance maps with the corresponding index of frequency? i.e, Z[f1] = f1, Z[f2] = f2..
I've tried using Z[lnsf.freq] but i get an error and doesn't seem to work.
Any help/alterenate approach would be highly appreciated. Thank you
Attachments: