CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

angular velocity can only be a function of time in transient simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2018, 10:56
Default angular velocity can only be a function of time in transient simulation
  #1
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
Hello dear Friends, i am still strugglin with this error is CFX if any one solve this please reply. I am doing a transient simulation of wind turbine in which the rotation of blades is due to the forces acting on it because of the wind velocity. I have also tried to edit the RULES file but when i put "ANY" instead of complete line "t, citern, aitern, atstep, " then solver manager does not even start and if i just replace the "t" with ANY then it still gives the same error.
burhanibrar is offline   Reply With Quote

Old   December 7, 2018, 19:30
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You should not edit the RULES file. Return it to the original version as it is required for the solver to function correctly (as you discovered).

Please explain what you are trying to do and we will help you find the correct way to do it.

Also, I note you posted this same question on other threads. I have deleted those posts. You have correctly started a new thread to ask a new question, so this thread is the place to discuss your issue.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 7, 2018, 19:37
Default
  #3
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
Yes idid as it was before. Acutally i am simulating a wind turbine and the rotation of turbine is due to the forces of the air on the blades. So i have define F which is equal to the resultant force in y and z direction if x is the aixs of rotation then i have use this force to calculate the angular velocit in rad/s and that variable i have defined in the angular velocity of rotating domain. I hope you get the idea and i am very thankful for you concern.
burhanibrar is offline   Reply With Quote

Old   December 7, 2018, 19:47
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, I understand your question. It is quite a common question and many people attempt to do it as you suggest. It is actually a very difficult and slow way to do it as you now have to get the rigid body motion to converge in addition to the CFD. This is not simple.

That is why the recommended approach in this sort of simulation is to do a range of steady state (ie no rigid body) simulations with a range of rotation speeds and wind velocities of interest to you. You can then define a performance map so you know how much torque your device generates (or absorbs) at any possible flow condition.

You then do a simple ODE solver using your torque map and some system parameters (rotational interia, initial speed, power taken by any devices attached etc) to do a simple model to predict the device speed over time. This ODE model is easily done in matlab, python or even Excel if you have to.

This means the CFD is just a number of simple rotating frame of reference simulations which should be easy to set up, practical to validate/verify and run reasonably quickly.

There are some situations where my recommended approach is not appropriate. If this is the case please explain why.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 7, 2018, 19:57
Default
  #5
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
Thank you again. But i still did not get completely. Actually i have also tried this with immersed solid and in that case it works but when i rotate the fluid domain wwithout solid bodies just the walls of the blade then it wont work. And for steady case the problem is that when i define some velocity let say 10 m/s and what about the rotation of the blades because if i define randomly then the results are different i want to see how fast it rotates at specific wind velocity.
burhanibrar is offline   Reply With Quote

Old   December 7, 2018, 22:58
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think you missed the point of my last post. Let's say you want to find the rotational speed your device will have in a 10 m/s wind. You could do it as a rigid body simulation but you will find that to be slow and difficult. My suggestion is to do a series of RFR simulations (ie no rigid body solver) where you assume the rotation speed is 1 rev/s, 2 rev/s and 3 rev/s. If the true rotation speed was 1.5 rev/s then the 1 rev/s simulation will generate positive torque (which shows the rotor will want to accelerate) and the 2 rev/s simulation will show negative torque (which shows the rotor will want to decelerate) and you can interpolate between these results to get the zero net torque result which is the steady state operating condition.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 8, 2018, 05:12
Default
  #7
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
Ok i have understood but it is very time consuming process in the other post you told ssidra that change the rulesfiles or one more option to do this type of simulation. So i just want to ask that the way i choosee to solve it is possible or not. And one last thing that how can i see the torque in Cfx is positive or negative and should i perform trasient simulation or steady one.
burhanibrar is offline   Reply With Quote

Old   December 8, 2018, 06:32
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You don't seem to understand my suggestion. My suggestion is far quicker than what you are proposing, not slower. My series of simulations can all be scripted up together, maybe using workbench or maybe by command line to run in a single go. They are all simple, reliable easy simulations.

I am not familiar with the details of the RULES file as it is internal to CFX. Users edit it at their peril.

Is it possible? I have heard other users do it, but I have not done it.

Torque direction? Torque is defined based on the coordinate system the torque command was called in.

Transient or steady state? If you are asking this question then you definitely should not do the simulation where you modify the speed. It is not a simulation for beginners. Do the series of simulations I suggested and they will all be steady state simulations, probably with frozen rotor on the GGI.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 8, 2018, 07:58
Default
  #9
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
i have not performed this type of simulation which you are proposing because i have a model of more than 5 millions cell and i think it will take more time because i am doing this in cfx and where i have to do the simulation for each wind speed and for each velocity magnitude. If there is another way please let me know. And i have one more question that in fluent there is option of dynamic mesh 6 DOF and i have seen some videos where the do not define any rotation and the turbine rotates because of the thrust of air does this type of simulation is possible in CFX.
burhanibrar is offline   Reply With Quote

Old   December 8, 2018, 17:37
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You are overestimating the difficultly of my suggestion and underestimating the difficulty of your method.

The series of simple runs I suggest can all be scripted together and use the previous result as an initial condition for the next one. This means they will run quickly and reliably. And if all you are doing is looking for the operating speed you can probably get it with reasonable accuracy with 3 to 5 simulations. Not very many.

While your suggestion is a single simulation, and is possible, it will be a slow and difficult run as it will require a full transient simulation, will require you to run it until the device gets to steady state and requires the rigid body solver to be converged.

Just because an example shows that it can be done by rigid body solvers does not mean that it is an effective way of doing it.

Also, don't forget the development time. You should be able to start work on the simple way straight away. The rigid body method will require development of the link to rotation speed, and then you are going to have to develop a method to make the rigid body solver numerically stable (just because you link things does not means it is numerically stable and will converge). This is going to take some time to develop.

Before you decide which way you are going to do this simulation, please try a steady state simulation as I suggest, and try a general rigid body simulation. Get a feel for the two approaches. Don't just assume that a single rigid body simulation is simple (because it is not).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 8, 2018, 17:57
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can I make a suggestion?

Try modelling an object falling vertically in free fall. It should end up falling at the object's terminal velocity.

So try modelling this with the rigid body solver - body the body as a rigid body and adjust the inlet velocity based on the motion of the rigid body until it converges on the object's terminal velocity. You don't need any special tricks to do this, you should be able to set this up easily. But it has the same challenges as the rotating model you propose so you will see for yourself what is involved in getting it to work.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 9, 2018, 13:57
Default
  #12
New Member
 
Burhan Ibrar
Join Date: Dec 2018
Posts: 21
Rep Power: 7
burhanibrar is on a distinguished road
Thank you brother but the problem is that i have never done any simulation with rigid body that is why i am confused. I have tried the simulation of free falling sphere today but still did not get the right simulation. If you can help me is rigid body simulation then it would be great like if you have some model then you can send me so i can learn from that. Thank you
burhanibrar is offline   Reply With Quote

Old   December 9, 2018, 16:40
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That's right, I am not surprised you did not get the right answer. As I have said many times this is not an easy simulation and the approach you are suggesting is very difficult.

I do not have the time to do a tutorial example for you. I have better things to do.

Please try the approach I suggested as it is your only hope of actually getting an answer.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 11, 2018, 10:39
Default
  #14
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Just here to confirm that I agree with Glenn. A series of simple steady simulations at different angular velocities will converge much easier and quicker than the complex simulation where the angular velocity is dependent on torque. Simulation like that have always been problematic in my experience.
evcelica is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33


All times are GMT -4. The time now is 06:48.