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

sampleDict not working (undefined keyword origin)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2016, 11:12
Question sampleDict not working (undefined keyword origin)
  #1
New Member
 
Max Vorstadt
Join Date: May 2016
Posts: 28
Rep Power: 10
jet_engine is on a distinguished road
Hi!

This is my sampleDict:

Code:
interpolationScheme cellPoint;

setFormat           raw;

fields              ( UMean );

sets
(
    sample_U
    {
        type    array;
        axis    xyz;
        coordinateSystem
        {
            e1      (1 0 0);
            e2      (0 1 0);
            origin  ( -0.6 0 0 );
        }
        pointsDensity   (100 100 0);
        spanBox         (0.6 0 0);

    }
);
I try to run it by:
Code:
sampleDict -dict system/sampleDict -latestTime
But it gives me the following error:
Code:
--> FOAM FATAL IO ERROR: 
keyword origin is undefined in dictionary "case/system/sampleDict.sets"

file: case/system/sampleDict.sets from line 30 to line 39.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 439.

FOAM exiting
I've tried:
  • Adding origin out of the function as well
  • Changing xyz to y, to x, to xy, ...

But the error is still the same, and ORIGIN is there! Does anyone know why it does not work?

Thanks!
jet_engine is offline   Reply With Quote

Old   May 25, 2022, 08:44
Default array sampling problems!
  #2
New Member
 
David Pavilons
Join Date: Apr 2022
Posts: 2
Rep Power: 0
Poefke is on a distinguished road
I was able to make it work!

sets
(

array_V
{
// Sample 'pointsDensity' points in a box with origin at 'origin'
// plus the vector 'spanBox'
type array;
axis xyz;
coordinateSystem
{
e1 (1 0 0);
e2 (0 1 0);
origin ( 0 0 0 );
}

origin (639 0 4);
coordinateRotation
{
type none;
}

pointsDensity (10 1 40);
spanBox (2 -1 8);

}
);

but i get strange coordinates for my spanbox. I specified my spanbox having a length of 2 meters but i get data points way beyond 641 in x direction. Does somebody know what is going wrong? i'm using openfoamV1812

639.182 -0.5 4.19512 7.94671e-06
639.727 -0.5 4.19512 2.29941e-06
640.636 -0.5 4.19512 1.27209e-06
643.545 -0.5 4.19512 9.44759e-14
645.545 -0.5 4.19512 2.44529e-11
647.909 -0.5 4.19512 2.52633e-10
650.636 -0.5 4.19512 5.80289e-06
Poefke is offline   Reply With Quote

Reply

Tags
origin, post-processing, raw, sample, sampledict

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[OpenFOAM.org] OpenFOAM 2.3.0 on CentOS 6.5 entropies OpenFOAM Installation 33 January 4, 2017 05:01
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM-2.1.x on fedora 16 x86_64 anand_30 OpenFOAM Installation 3 December 26, 2011 02:09
OpenFoam-1.7.x on Suse 11.2 (64bit) does not compile val46 OpenFOAM Installation 4 August 27, 2010 03:43


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