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

[waves2Foam] Problem in running Allrun and also setWaveFields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2015, 08:07
Default Problem in running Allrun and also setWaveFields
  #1
New Member
 
Ankit
Join Date: Jan 2015
Posts: 2
Rep Power: 0
ankitchy is on a distinguished road
Hi I am having problem in running Allrun command. The problem I am trying is with a fluid domain having two phase air and water with two inlet (INFLOW & AIRINFLOW) and with two outlet (OUTFLOW & AIROUTFLOW). There is a body in the centre of domain which im this case is semi submersible.

The error message gives

Code:
bash: .//Allrun: Permission denied
Then, i tried running individually like waveGaugesNProbes, setWaveParameters which run with succes.

Then again the command setWaveField is not running with below error.

Code:
 /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.3.0-f5222ca19ce6
Exec   : setWaveField
Date   : Mar 09 2015
Time   : 20:02:04
Host   : "ankitubuntu-VPCSB18GG"
PID    : 4358
Case   : /home/ankitubuntu/OpenFOAM/ankitubuntu-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/semi_harish
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

// using new solver syntax:
pcorr
{
    solver          GAMG;
    tolerance       1e-07;
    relTol          0;
    smoother        DIC;
    nPreSweeps      0;
    nPostSweeps     2;
    nFinestSweeps   2;
    cacheAgglomeration true;
    nCellsInCoarsestLevel 10;
    agglomerator    faceAreaPair;
    mergeLevels     1;
}

// using new solver syntax:
p_rgh
{
    solver          GAMG;
    tolerance       1e-07;
    relTol          0;
    smoother        DIC;
    nPreSweeps      0;
    nPostSweeps     2;
    nFinestSweeps   2;
    cacheAgglomeration true;
    nCellsInCoarsestLevel 10;
    agglomerator    faceAreaPair;
    mergeLevels     1;
}

// using new solver syntax:
p_rghFinal
{
    solver          GAMG;
    tolerance       1e-08;
    relTol          0;
    smoother        DIC;
    nPreSweeps      0;
    nPostSweeps     2;
    nFinestSweeps   2;
    cacheAgglomeration true;
    nCellsInCoarsestLevel 10;
    agglomerator    faceAreaPair;
    mergeLevels     1;
}

// using new solver syntax:
U
{
    solver          PBiCG;
    preconditioner  DILU;
    tolerance       1e-09;
    relTol          0;
}

// using new solver syntax:
UFinal
{
    solver          PBiCG;
    preconditioner  DILU;
    tolerance       1e-09;
    relTol          0;
}

// using new solver syntax:
gamma
{
    solver          PBiCG;
    preconditioner  DILU;
    tolerance       1e-07;
    relTol          0;
}


Reading waveProperties

Reading g

Reading field alpha



--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/ankitubuntu/OpenFOAM/ankitubuntu-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/semi_harish/0/alpha.water at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
I am new to CFD and wave2foam as well. Appreciate any of you to reply on this question urgently as I am trying this from a number of days.

Thanks !!

Last edited by wyldckat; March 19, 2015 at 15:51. Reason: Added [CODE][/CODE]
ankitchy is offline   Reply With Quote

Old   March 9, 2015, 08:11
Default
  #2
New Member
 
Pragyandeep
Join Date: Oct 2014
Location: St. John's, Newfoundland
Posts: 2
Rep Power: 0
psahoo87 is on a distinguished road
Hi Ankit,

As you can see: file: /home/ankitubuntu/OpenFOAM/ankitubuntu-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/semi_harish/0/alpha.water at line 0.

waves2Foam cannot find your 0 folder. You only your 0.org folder, thus you must create your 0 folder with the boundary conditions such as alpha.water, U, etc. in it in order for the ./Allrun command file to run.

Hope this helps. Kind regards,
psahoo87 is offline   Reply With Quote

Old   March 9, 2015, 09:10
Default
  #3
New Member
 
Ankit
Join Date: Jan 2015
Posts: 2
Rep Power: 0
ankitchy is on a distinguished road
Quote:
Originally Posted by psahoo87 View Post
Hi Ankit,

As you can see: file: /home/ankitubuntu/OpenFOAM/ankitubuntu-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/semi_harish/0/alpha.water at line 0.

waves2Foam cannot find your 0 folder. You only your 0.org folder, thus you must create your 0 folder with the boundary conditions such as alpha.water, U, etc. in it in order for the ./Allrun command file to run.

Hope this helps. Kind regards,
Hi Pragyandeep

Thanks for Replying.

The examples file of Wave2Foam is such that while running waveSetFields it will automatically create alpha, u & P file inside folder "0" which is based on the definition in "0.org" folder and the waveProperties defined under waveProperties.Input. I have tried to do the same here and defined all the necessary file which should create the files in "0" folder but still do not why it is not working in this example.

Only thing that I can think could be the reason but not sure is that In my case I have inlet defined as INFLOW which is from -977.4 to 50 in vertical direction and then AIRINFLOW from 50 to 122.6m. The sea level is set at 7m which mean only lies in INFLOW zone. In this case I have defined both INFLOW and AIRFLOW as waveVelocity condition. I am not sure if this is true.
ankitchy 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



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