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

solidCylinder (solidParticle) positions error

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 20, 2017, 17:50
Default solidCylinder (solidParticle) positions error
  #1
Member
 
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 8
cojua8 is on a distinguished road
Hello,

I am a new OpenFOAM user (and new in the forums) with almost zero experience in C++ coding.

I've been trying to run a solver based on particle tracking SolidCylinderFoam (wirtten by Jelena Andric in OF1.5), which uses a new class called solidCylinder and solidCylinderCloud that are the same as solidParticle and solidParticleCloud, but with a very small change (no properties are changed).
I had some issues to make it work on OF5.0 but finally it compiled without problems.



Now, the problem comes when I run the test case, which should track 2 particles:

Code:
Create time

Create mesh for time = 0

Reading field U

Reading field rho

Reading field nu


Reading environmentalProperties

Creating particle cloud

--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 19 the punctuation token ')'

file: /home/usuario4/Joaquin/OpenFOAM/OpenFOAM-5.0/solidParticleFoam/box/0/lagrangian/defaultCloud/positions at line 19.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting
The file 0/lagrangian/defaultCloud/positions:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5.x                                 |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       Cloud<solidCylinder>;
    location    "0";
    object      positions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
2
(
(1e-2 9e-2 0.05 )  0
(2e-2 9e-2 0.05 )  0
)
// ************************************************************************* //
0/lagrangian/defaultCloud/d (diameter)

Code:
2
(
2.0e-3
2.0e-3
)
and 0/lagrangian/defaultCloud/U (velocity)
Code:
2
(
(1.7e-1 0 0)
(1.7 0 0)
)
and in /constant i have the file particleProperties (and nothing else related to particles)

Code:
rhop rhop [ 1 -3  0  0  0  0  0] 1000;
e    e    [ 0  0  0  0  0  0  0] 0.8;
mu   mu   [ 0  0  0  0  0  0  0] 0.2;
how do I solve this error?

Thanks in advance
cojua8 is offline   Reply With Quote

 

Tags
error, positions, solidcylinder, solidparticle, solidparticlecloud


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


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