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

Help with understanding how angularOscillatingDisplacementPointPatchVectorFiel d.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2021, 11:03
Default Help with understanding how angularOscillatingDisplacementPointPatchVectorFiel d.C
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19
quarkz is on a distinguished road
Hi,

I am trying to understand how angularOscillatingDisplacementPointPatchVectorFiel d.C works. This is the source code for angularOscillatingDisplacement, which rotates the body in a sinusoidal manner.

The main formula is:

vectorField:perator=
(
p0Rel*(cos(angle) - 1)
+ (axisHat ^ p0Rel*sin(angle))
+ (axisHat & p0Rel)*(1 - cos(angle))*axisHat

);

But this doesn't seem like a angular rotation abt a particular axis.

Also, from my understanding, it's possible to refine the motion thru:

forAll(p0_,iter)
{

sd[iter] = p0Rel[iter]*(cos(angle) - 1) + (axisHat ^ p0Rel[iter]*sin(angle)) + (axisHat & p0Rel[iter])*(1 - cos(angle))*axisHat;

}

vectorField:perator=
(
sd
);

But if I use my own 3d rotation(sd[iter] = ....), I got different results - a magnified body doing some strange rotation.

Even if I change the formulation to just a simple translation:

forAll(p0_,iter)
{

sd[iter] = p0_[iter] + (0.2,0,0)

}

I still get magnified body doing some strange translation

May I knwo why this is so? what's wrong with the formulation?

Thanks.
quarkz 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
Understanding p and p_rgh Victor3 OpenFOAM Running, Solving & CFD 3 October 1, 2020 12:06
Understanding hardware & parallel processing requirements yk2359 Hardware 3 May 24, 2018 13:34
Understanding the viscous stress tensor Benben Main CFD Forum 18 June 20, 2017 12:12
Simple parabolic velocity UDF with symmetry - what am I not understanding!?! NPGrad FLUENT 1 September 30, 2016 11:42
Understanding pimpleFoam convergence criterion Nucleophobe OpenFOAM Running, Solving & CFD 0 March 13, 2013 18:46


All times are GMT -4. The time now is 09:49.