CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Openfoam adding torque and thrust to certain cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2018, 07:23
Default Openfoam adding torque and thrust to certain cells
  #1
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 7
syntex is on a distinguished road
Hello,


for my simulation I need to add torque and thrust to certain cells.
I set my mesh up, so I got those cells and need to add these volumeForces there and I don't have any idea, can anyone help me?
syntex is offline   Reply With Quote

Old   December 10, 2018, 10:25
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
So you have the cells already defined as cellSets?


fvOptions is your friend.
LuckyTran is offline   Reply With Quote

Old   December 11, 2018, 07:42
Default
  #3
Member
 
Christophk
Join Date: Oct 2018
Posts: 33
Rep Power: 7
syntex is on a distinguished road
I have the cells as cellZone.

Is there any tutorial on how to do it like syntax etc?
syntex is offline   Reply With Quote

Old   December 17, 2018, 17:03
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,728
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
There is a bad example in:

Coded Source

You need to change selectionMode from all to cellSet and add another line to give the label to the cellSet:


Code:
type            coded;
selectionMode   all;
fields          (h);
name            sourceTime;
Change this to
Code:
type            coded;
selectionMode   cellSet;
cellSet         bananaSet;
fields          (U); // possibly others
name            sourceTime;
And then you need to modify the actual body for your particular source. I.e. change heSource for your source
Code:
       heSource[i] += 1e5*sin(200*cellx[i])*V[i];
The reason it's a bad example is that the energy equation is a scalar equation. You need a vector source, not a scalar source.
LuckyTran 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
Calculation of thrust and torque for propeller aeksberde OpenFOAM Post-Processing 2 October 28, 2019 05:23
Propeller Thrust and Torque Increasing KindaHungry STAR-CCM+ 1 November 3, 2018 05:59
How do I find thrust and torque for a propeller in ANSYS Fluent ? Hayatul_Maruf FLUENT 0 May 14, 2018 00:05
how to get thrust and torque from fluent acting on propeller using single enclosure Naveen Kumar Gulla FLUENT 2 April 12, 2018 07:59
calculate the thrust and torque of a propeller in open water condition. Alex song STAR-CCM+ 14 August 3, 2016 11:54


All times are GMT -4. The time now is 21:33.