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.

Questions about applying a harmonic load

Zheng Sun M.Sc. Computer Engineering

Please login with a confirmed email address before reporting spam

Hi, I am student who wants to simulate the anvil to see the vibrations in Frequency domain for structural mechanics. I want to apply a constant pressure in z-direction of my surface and a harmonic load which will change time to time in x-direction on the same surface. (like Fx=Acos(2pif*t)) How could I apply the harmonic load, I can't apply with a wave form, which says "an unkown variable" in the equation.

I'm glad to hear from any answers.

Zheng Sun


9 Replies Last Post 28 nov. 2022, 07:52 UTC−5
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 22 nov. 2022, 10:45 UTC−5
Updated: 1 year ago 22 nov. 2022, 10:49 UTC−5

Hi Zheng,

The correct COMSOL syntax is A*cos(2*pi*f*t), then assuming that f is a defined constant, for example.

Best regards,

Magnus

Hi Zheng, The correct COMSOL syntax is `A*cos(2*pi*f*t)`, then assuming that `f` is a defined constant, for example. Best regards, Magnus

Zheng Sun M.Sc. Computer Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 22 nov. 2022, 10:50 UTC−5

Hi Zheng,

The correct COMSOL syntax is A*cos(2*pi*f*t), then assuming that f is defined constant, for example.

Best regards,

Magnus

Hi Magnus,

Thank you for your reply!

I use your equation, but it still has this problem "an unknown variable f". Because I want to do Frequency domain study, I want my result to change with the frequency, so I couldn't set a constant f. How could I deal with it again?

>Hi Zheng, > >The correct COMSOL syntax is `A*cos(2*pi*f*t)`, then assuming that `f` is defined constant, for example. > >Best regards, > >Magnus Hi Magnus, Thank you for your reply! I use your equation, but it still has this problem "an unknown variable f". Because I want to do Frequency domain study, I want my result to change with the frequency, so I couldn't set a constant f. How could I deal with it again?

Dave Greve Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 22 nov. 2022, 13:30 UTC−5

If you want to do a frequency domain study all you have to do is enter the phasor value that represents the load.

If there is an additional static load then you are interested in a frequency domain, prestressed study.

If you want to do a frequency domain study all you have to do is enter the phasor value that represents the load. If there is an additional static load then you are interested in a frequency domain, prestressed study.

Zheng Sun M.Sc. Computer Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 23 nov. 2022, 07:12 UTC−5

If you want to do a frequency domain study all you have to do is enter the phasor value that represents the load.

If there is an additional static load then you are interested in a frequency domain, prestressed study.

Hi Dave,

Thank you for the sugesstions!

If I want to have a harmonic load changes tme to time, how could I define the phase? change the phase to "2pif*t"? I am not sure about this.

Besides, if i need to do the frequency domain, prestressed study, i can define the static load like "16N" directly and another harmonic load with the phase change on the same surface, is it right?

>If you want to do a frequency domain study all you have to do is enter the phasor value that represents the load. > >If there is an additional static load then you are interested in a frequency domain, prestressed study. Hi Dave, Thank you for the sugesstions! If I want to have a harmonic load changes tme to time, how could I define the phase? change the phase to "2*pi*f*t"? I am not sure about this. Besides, if i need to do the frequency domain, prestressed study, i can define the static load like "16N" directly and another harmonic load with the phase change on the same surface, is it right?

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 23 nov. 2022, 10:05 UTC−5

Hi Zheng,

In a frequency-domain study, you analyze the response due to a sinusoidal (harmonic) load applied to a structure at specified frequencies. So, what you specify for the loads then is the amplitude (A, in your case). The time is not explicitly used.

Best regards,

Magnus

Hi Zheng, In a frequency-domain study, you analyze the response due to a sinusoidal (harmonic) load applied to a structure at specified frequencies. So, what you specify for the loads then is the amplitude (`A`, in your case). The time is not explicitly used. Best regards, Magnus

Dave Greve Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 23 nov. 2022, 12:13 UTC−5

A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number.

A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number.

Zheng Sun M.Sc. Computer Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 24 nov. 2022, 09:00 UTC−5

A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number.

Thanks again!

Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2pifreq*0.2[s]" in x-direction. I used these settings to do a frequency domain prestressed study, is it right?

>A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number. Thanks again! Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2*pi*freq*0.2[s]" in x-direction. I used these settings to do a frequency domain prestressed study, is it right?

Acculution ApS Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 25 nov. 2022, 14:13 UTC−5

A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number.

Thanks again!

Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2pifreq*0.2[s]" in x-direction. I used these settings to do a frequency domain prestressed study, is it right?

When you apply 16 N it has zero phase unless you write it as for example 16exp(isome phase in radians) or as a+ib for rectangular form for the phasor. There is no thing as harmonic force phase without an amplitude so your last input does not make sense.

-------------------
René Christensen, PhD
Acculution ApS
www.acculution.com
info@acculution.com
>>A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number. > >Thanks again! > >Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2*pi*freq*0.2[s]" in x-direction. >I used these settings to do a frequency domain prestressed study, is it right? When you apply 16 N it has zero phase unless you write it as for example 16*exp(i*some phase in radians) or as a+ib for rectangular form for the phasor. There is no thing as harmonic force phase without an amplitude so your last input does not make sense.

Zheng Sun M.Sc. Computer Engineering

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 28 nov. 2022, 07:52 UTC−5

A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number.

Thanks again!

Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2pifreq*0.2[s]" in x-direction. I used these settings to do a frequency domain prestressed study, is it right?

When you apply 16 N it has zero phase unless you write it as for example 16exp(isome phase in radians) or as a+ib for rectangular form for the phasor. There is no thing as harmonic force phase without an amplitude so your last input does not make sense.

Thank you for your reply, However, "16N" is the clamp force that I want it to be static, and "79N" is another harmonic force applied to the same surface that I want it to be harmonic force with phasor. So my question is could it be possible to set like this and apply a frequency domain prestressed study? Or just frequency domain study?

>>>A frequency dependent simulation calculates the response to a sinusoidal forcing function applied for an infinite time. Calculated quantities and forcing functions are represented as phasors. OP should begin by understanding phasor representation. Phasors represent the magnitude and phase by a single complex number. >> >>Thanks again! >> >>Now I set static force in z-direction for "16N" and set harmonic force magnitude "79N" in x-direction and harmonic force phase "2*pi*freq*0.2[s]" in x-direction. >>I used these settings to do a frequency domain prestressed study, is it right? > >When you apply 16 N it has zero phase unless you write it as for example 16*exp(i*some phase in radians) or as a+ib for rectangular form for the phasor. There is no thing as harmonic force phase without an amplitude so your last input does not make sense. Thank you for your reply, However, "16N" is the clamp force that I want it to be static, and "79N" is another harmonic force applied to the same surface that I want it to be harmonic force with phasor. So my question is could it be possible to set like this and apply a frequency domain prestressed study? Or just frequency domain study?

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.