Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple wave pistons #147

Open
aepoc opened this issue Aug 17, 2023 · 5 comments
Open

Multiple wave pistons #147

aepoc opened this issue Aug 17, 2023 · 5 comments

Comments

@aepoc
Copy link

aepoc commented Aug 17, 2023

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
Copy link
Author

aepoc commented Aug 17, 2023

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
Copy link
Author

aepoc commented Nov 13, 2023

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

@luzpaz
Copy link
Contributor

luzpaz commented Feb 2, 2025

@aepoc any chance you can upload the example model that you mentioned in this ticket ?

@aepoc
Copy link
Author

aepoc commented Feb 2, 2025

I'll look for this specific code on Monday. If I cannot find this specific simulation, would you like the XML from a similar simulation? Whenever I have multiple plungers out of phase, I just change the start time. It would be nice to input by phase.

Thanks

@luzpaz
Copy link
Contributor

luzpaz commented Feb 2, 2025

Maybe just worth uploading to this ticket for posterity as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants