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.
Error in Thermoviscous Acoustics: Undefined variable. - Variable: comp1.mat1.def.pA
Posted 11.12.2018, 13:24 GMT-5 Acoustics & Vibrations 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I am trying to calculate the input impedance of an open tube, so that the viscous and thermal losses due to the boundary layer are included, using the Thermoviscous Acoustics module. The input to the system is a normal velocity at one end of the tube and the other end should be modelled as a radiation impedance. In the Acoustics Module there is a boundary condition for a radiation impedance, which I could not find in the Thermoviscous Acoustics module. So, I tried to define the radiation condition using an analytical model, by including the following formula for the Normal Impedance condition: mat1.def.rho*mat1.def.c*((beta*radius)^2/4+i*0.61*beta*radius), where beta is defined as a variable and radius as a parameter. However, when I try to compute the system I a get the following error:
- Feature: Stationary Solver 1 (sol1/s1)
Undefined variable.
- Variable: comp1.mat1.def.pA
- Geometry: geom1
- Boundary: 3 Failed to evaluate variable.
- Variable: comp1.mat1.def.rho
- Defined as: (comp1.mat1.def.rho(comp1.mat1.def.pA/unit_Pa_cf,comp1.T/unit_K_cf)*unit _kg_cf)/(unit_m_cf^3) Failed to evaluate variable.
- Variable: comp1.ta.ni1.Z0
- Defined as: ((comp1.mat1.def.rho*comp1.mat1.def.c)*((0.25*((comp1.beta*radius)^2))+(radius*(comp1.beta*(0.61*i)))))*exp(i*phase) Failed to evaluate expression.
- Expression: dvol_spatial*(r*(pi*(comp1.ta.delta*((((-2)*comp1.ta.ni1.Z0)*comp1.ta.Un)*comp1.ta.ni1.nz)))) Failed to evaluate Jacobian of expression.
- Expression: (-2*comp1.ta.ni1.Z0*comp1.ta.Un*(comp1.ta.ni1.nr*test(comp1.u)+comp1.ta.ni1.nz*test(comp1.w))*comp1.ta.delta*pi*r)*(dvol_spatial)
I can see that rho is defined as a function of pA in the material I am using (air) but I don't know how to define it pA. I have attached my model file.
Kind Regards,
Angelis