DesignSPHysics icon indicating copy to clipboard operation
DesignSPHysics copied to clipboard

Multiple wave pistons

Open aepoc opened this issue 2 years ago • 2 comments

Hey there, I am trying to run a simulation with 4 pistons moving in the z direction. I would like for 2 of them to produce a wave at t=0s and the other two to produce a wave at t=1/2*wave period. Unfortunately when using the automatic wave generators, it looks as though no other motion can be defined. Is there a way to achieve this? the simulation runs successfully only when all 4 pistons are set to the same wave.

The two wave programs I created are the same other than the phases. 2 pistons are set to phase 0 and 2 pistons are set to phase pi/2 radians. Is there different way to add a delay to only 2 pistons?

aepoc avatar Aug 17 '23 16:08 aepoc

Seems to be working as I intend now. I'm not exactly sure what I did correct... perhaps it was putting the plungers below the bound geometry in object order?

I have a question about the Phase input for the plunger style wave generators:
DesignSPHysics states that the units are in radians but the .xml says that the phase is a function of Pi in radians... If i were trying to start at a phase of 90 degrees (pi/2 radians), would the correct input be 1.570795 radians or would it be .5? (0.5*pi = 1.570795rad).

I'm hoping that the code will multiply by pi (input = 0.5) as typing the long decimals is less accurate.

Thanks in advance!

aepoc avatar Aug 17 '23 22:08 aepoc

I would just like to note that changing the start time of the paddles in the casedef.xml was much easier than changing the starting phase in designsphysics

aepoc avatar Nov 13 '23 20:11 aepoc