CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Sample line defined by trigonometric curve

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2015, 10:00
Default Sample line defined by trigonometric curve
  #1
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Hi,

I am looking at flow around a solid cube at different angles.


I'm interested in the pressures on a line up the centre of each façade so I manually use sample. For the 0 degree case, where flow is perpendicular to the cube:

Code:
zfront
    {
        type        uniform;
        axis        distance;

        start       (0 -3.02 0);
        end         (0 -3.02 6);
        nPoints     100;
    }
Two things:

1. Sample often doesn't produce 100 points for some reason, nor does it order them
2. As my cube turns (for different simulations), my sampling points will turn. I'd like to sample over a line defined by a trigonometric curve. Is it possible?

e.g.
Code:
start(3*sin(pi/180*Angle) -3*cos(pi/180*Angle) 0)
end(3*sin(pi/180*Angle) -3*cos(pi/180*Angle) 6)
My alternative is to make the list of points but the sample file will be enormous as I have at least 10 lines to sample over. Any thoughts would be much appreciated
kingjewel1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 19:07.