CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview calculating moment

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kandelabr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2018, 06:11
Default Paraview calculating moment
  #1
New Member
 
Ondrej Novak
Join Date: Apr 2014
Posts: 10
Rep Power: 12
Aedun is on a distinguished road
Hello

i would like to calculate in paraview moment around some point. I can calculate forces using calculator for each cell and then integrate it. I imagine that if i calcuate distance of each cell to that point and than use it as arm for moment and integrate it will work. But dont how to to do it exactly.

Can you help please ?
Thanks a lot
Aedun is offline   Reply With Quote

Old   August 9, 2018, 06:46
Default
  #2
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Since torque is r x F you only need r vectors; that would be coords - (Px*ihat + Py*jhat + Pz*khat), if point P(Px, Py, Pz) is your center of rotation. Coords is a vector field available in calculator.

Then you only need a cross product of your calculated forces and r vectors. I believe there's a cross() function in calculator.

But are you sure you want to use ParaView?
I was wrestling with it for a while but then switched to postprocessing in openFoam. Add something like that to controlDict:

Code:
    forces_impeller
    {
        type    forces;
        libs    ("libforces.so");
        patches (impeller_walls);

        rho     rhoInf;
        rhoInf  1000;

        CofR (0 0 0);
    }
If you really need to display the values in paraview you would then need to write a python filter that reads postprocessing data according to current timestep. But that's a completely different problem...
virengos likes this.
kandelabr is offline   Reply With Quote

Old   October 28, 2019, 04:50
Default
  #3
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 7
Krao is on a distinguished road
Hi Ondrej Novak,

Quote:
Originally Posted by Aedun View Post
Hello

i would like to calculate in paraview moment around some point. I can calculate forces using calculator for each cell and then integrate it. I imagine that if i calcuate distance of each cell to that point and than use it as arm for moment and integrate it will work. But dont how to to do it exactly.

Can you help please ?
Thanks a lot
Did you figure out how to find the moments using paraview? I have calculated the forces but unable to find the moments. It would be great if you can shed some light on this problem.

Thank you
Krao is offline   Reply With Quote

Old   October 29, 2019, 13:15
Default Paraview
  #4
New Member
 
Join Date: Oct 2019
Posts: 1
Rep Power: 0
nik002 is on a distinguished road
Hello, I also have a problem finding the points calculator but mine is a bit different.
Well I have a simulation of a sphere (tumor) that is growing in a host tissue for a specific time. I want to set a point outside the sphere and calculate different variables like IFP, IFV, THP etc. while the sphere is growing and see how the variable in that point will change. I want my point to be stable ( fixed coordinates x,y,z) and after the calculation I want to plot graphs of each variable.
nik002 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
[General] Calculating mesh quality in paraview Jack001 ParaView 0 October 22, 2016 10:01
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? jaffar ParaView 0 November 27, 2012 09:36
Center of pressure (confirmation/question) scipy FLUENT 2 March 5, 2012 06:54
Force can not converge colopolo CFX 13 October 4, 2011 22:03
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 07:11


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