|
[Sponsors] |
Help with understanding how angularOscillatingDisplacementPointPatchVectorFiel d.C |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 27, 2021, 12:03 |
Help with understanding how angularOscillatingDisplacementPointPatchVectorFiel d.C
|
#1 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Understanding p and p_rgh | Victor3 | OpenFOAM Running, Solving & CFD | 3 | October 1, 2020 13:06 |
Understanding hardware & parallel processing requirements | yk2359 | Hardware | 3 | May 24, 2018 14:34 |
Understanding the viscous stress tensor | Benben | Main CFD Forum | 18 | June 20, 2017 13:12 |
Simple parabolic velocity UDF with symmetry - what am I not understanding!?! | NPGrad | FLUENT | 1 | September 30, 2016 12:42 |
Understanding pimpleFoam convergence criterion | Nucleophobe | OpenFOAM Running, Solving & CFD | 0 | March 13, 2013 19:46 |