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

Problem running solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2016, 10:54
Default Problem running solver
  #1
New Member
 
A Russell
Join Date: Mar 2016
Posts: 13
Rep Power: 10
arussell92 is on a distinguished road
I have a controlDict file that looks like the one below, created in notepad and the extension is removed for foam. What would the problem be? The error given is "problem while reading header for object controlDict".

\***************************** C++*********************************************** *******/
| =====
| \\ / Field | OpenFOAM: The Open Source CFD Toolbox j
| \\ / Operation | Version: 2.2.1
| \\ / And | Web: www.OpenFOAM. org j
| \\ / Manipulation
// ************************************************** ****************************************** //
FoamFile
{
version 2.0 ;
format ascii ;
class dictionary;
location "system";
object controlDict;
}
// ************************************************** ****************************************** //

application icoFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 5;

deltaT 0.005;

writeControl timeStep;

writeInterval 20;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

//************************************************** **************************************** //
arussell92 is offline   Reply With Quote

Old   March 31, 2016, 17:57
Default
  #2
Member
 
Vinícius da Costa Ávila
Join Date: Jul 2015
Location: Porto Alegre, Brazil
Posts: 62
Rep Power: 10
avila.vc is on a distinguished road
Hi,

The first lines should be commented out, but your slash is reversed there.

This "/*" starts a comment and this "*/" ends it. You have \*. Just correct it and I think it should work.

Edit:

/***************************** C++*********************************************** *******\
| =====
| \\ / Field | OpenFOAM: The Open Source CFD Toolbox j
| \\ / Operation | Version: 2.2.1
| \\ / And | Web: www.OpenFOAM. org j
| \\ / Manipulation
\************************************************* **************************************/

This should work
__________________
Vinícius dC.A.
avila.vc is offline   Reply With Quote

Old   April 1, 2016, 05:24
Default
  #3
New Member
 
A Russell
Join Date: Mar 2016
Posts: 13
Rep Power: 10
arussell92 is on a distinguished road
Thank you, it has now got past the controlDict file but gets stuck in the blockMeshDict file now. I can't for the life of me see what the problem with the file is. When I compare it to the tutorial files it looks identical to me (aside from the different boundaries actually defined. Can you see anything wrong with this below?

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v3.0+ |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.1;

vertices
(
(0 0 0)
(20 0 0)
(20 1 0)
(0 1 0)
(0 0 0.1)
(20 0 0.1)
(20 1 0.1)
(0 1 0.1)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
top
{
type wall;
faces
(
(3 7 6 2)
);
}
bottom
{
type wall;
faces
(
(1 5 4 0)
);
}
inlet
{
type patch;
faces
(
(0 4 7 3)
);
}
Outlet
{
type patch;
faces
(
(2 6 5 1)
);
}
frontAndBack
{
type empty;
faces
(
(0 3 2 1)
(4 5 6 7)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
arussell92 is offline   Reply With Quote

Old   April 1, 2016, 05:40
Default
  #4
New Member
 
A Russell
Join Date: Mar 2016
Posts: 13
Rep Power: 10
arussell92 is on a distinguished road
Apologies please ignore this, I somehow had two blockMeshDict files in the case folder and it was reading the wrong one.
arussell92 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
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
solver stop problem in Lagrangian Particle Tracking sakurabogoda CFX 3 October 5, 2012 06:09
Problem Interface Solid Fluid with wall velocity Solver v12 hills1 CFX 2 October 12, 2009 05:36
Compilation problem after modifying a solver. PetSul OpenFOAM Running, Solving & CFD 2 October 1, 2009 17:28
Coupled problem running in parallel liu OpenFOAM Running, Solving & CFD 1 June 24, 2005 05:57


All times are GMT -4. The time now is 03:34.