|
[Sponsors] |
Start simulation at t =/= 0 for oscillation motion |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 20, 2021, 06:59 |
Start simulation at t =/= 0 for oscillation motion
|
#1 |
New Member
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Hello everyone,
I am running a simulation using pimpleFoam with a rotating oscillating mesh. I just found out that the rotating function is hardcoded in "oscillatingRotatingMotion.C" and is: Code:
vector eulerAngles = ampltude_*sin(omega_*t) Conclusion: I would like to find a solution to start the simulation at rest and increase speed gently. Ideally I wiuld like a cos instead of a sin fot the angular position. I found the following post: AMI speed performance But modifying the source code is not really an option for me. My final question is... Is it possible to start a simulation at a time different than t = 0s? By properly choosing the initial time I could transform the sin function into a cos (phase shift). |
|
October 20, 2021, 07:38 |
|
#2 |
Senior Member
Join Date: Jan 2014
Posts: 179
Rep Power: 12 |
Hi,
1st option: Hard coded: it is possible but you need to adapt the solver. (e.g.: as an example define scalar t_offset -> (sin(t+t_offset))) and so on... 2nd option: Run "moveDynamicMesh" and stop at your wanted endTime of your initial stage. Next, run pimplefoam Have fun |
|
October 20, 2021, 11:27 |
|
#3 |
New Member
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Thank you for your reply, I tried a third option which is a direct consequence of number (2):
3) Create a geometry with the rotor at the position which satisfies angular velocity equal to 0. Then change the name of the 0 folder into the time at which you want the rotor to have zero angular velocity (position is going to be -cos). Finally, change the controlDict and set: Code:
startFrom latestTime; For the moment my simulation explodes,... Still trying to understand why |
|
Tags |
openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mpirun during simulation under Docker (start with ./startOpenFOAM) | spalartallmaras | OpenFOAM Running, Solving & CFD | 1 | November 3, 2021 05:13 |
Cooling Brake Simulation: A Motion Problem Between Two Solid Interfaces | SimulatorMaster | Main CFD Forum | 0 | May 10, 2020 13:03 |
Start the simulation during a valve event | MMatt | CONVERGE | 4 | December 11, 2019 03:12 |
Start new Ansys Fluent Simulation automatically | Malue | Fluent UDF and Scheme Programming | 1 | October 4, 2017 02:48 |
Simulation with motion | liuzexiang | CFX | 28 | November 29, 2012 04:15 |