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

Running of PotentialFoam with shiphull

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2016, 20:07
Default Running of PotentialFoam with shiphull
  #1
New Member
 
Xin Ren
Join Date: Feb 2016
Posts: 6
Rep Power: 10
XinRen is on a distinguished road
Hi all, I am a new user to using OpenFOAM, and I am currently trying out potentialFoam with a shiphull application.

Below is the file for blockMesh

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

convertToMeters 1000;

vertices
(
(-50 -500 -150) //node 0 layer 1
(300 -500 -150)
(300 23.195 -150)
(-50 23.195 -150) //node 3

(-50 -500 -70) //node 4 layer 2
(300 -500 -70)
(300 23.195 -70)
(-50 23.195 -70) //node 7

(-50 -500 10) //node 8 layer 3
(300 -500 10)
(300 23.195 10)
(-50 23.195 10) //node 11

(-50 -500 15) //node 12 layer 4
(300 -500 15)
(300 23.195 15)
(-50 23.195 15) //node 15

(-50 -500 20) //node 16 layer 5
(300 -500 20)
(300 23.195 20)
(-50 23.195 20) //node 19

(-50 -500 90) //node 20 layer 6
(300 -500 90)
(300 23.195 90)
(-50 23.195 90) //node 23

(-50 -500 150) //node 24 layer 7
(300 -500 150)
(300 23.195 150)
(-50 23.195 150) //node 27
);

blocks
(
hex (0 1 2 3 4 5 6 7) (350 524 220) simpleGrading (1 1 1)
hex (4 5 6 7 8 9 10 11) (350 524 80) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (350 524 25) simpleGrading (1 1 1)
hex (12 13 14 15 16 17 18 19) (350 524 35) simpleGrading (1 1 1)
hex (16 17 18 19 20 21 22 23) (350 524 110) simpleGrading (1 1 1)
hex (20 21 22 23 24 25 26 27) (350 524 240) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
atmosphere
{
type patch;
faces
(
(24 25 26 27)
);
}
inlet
{
type patch;
faces
(
(1 2 6 5)
(5 6 10 9)
(9 10 14 13)
(13 14 18 17)
(17 18 22 21)
(21 22 26 25)
);
}
outlet
{
type patch;
faces
(
(0 4 7 3)
(4 8 11 7)
(8 12 15 11)
(12 16 19 15)
(16 20 23 19)
(20 24 27 23)
);
}
bottom
{
type symmetryPlane;
faces
(
(0 3 2 1)
);
}
side
{
type symmetryPlane;
faces
(
(0 1 5 4)
(4 5 9 8)
(8 9 13 12)
(12 13 17 16)
(16 17 21 20)
(20 21 25 24)
);
}
midPlane
{
type symmetryPlane;
faces
(
(3 7 6 2)
(7 11 10 6)
(11 15 14 10)
(15 19 18 14)
(19 23 22 18)
(23 27 26 22)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //

This is done based on LTSInterFoam solver
XinRen is offline   Reply With Quote

Old   March 4, 2016, 20:09
Default
  #2
New Member
 
Xin Ren
Join Date: Feb 2016
Posts: 6
Rep Power: 10
XinRen is on a distinguished road
I am able to run blockMesh command without any issue, however, as i am running -writePhi -writep, it states

-writePhi: command not found


Anyone that can help me with this issue?
XinRen is offline   Reply With Quote

Old   March 5, 2016, 11:59
Default
  #3
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
I am not 100% sure what the writePhi writep command is supposed to do but in OF 3.0.1 which I am using you simply type potentialFoam to run it.
What version are you using? Have you included the setting for potentialFoam in your fvSolution?

Cheers
Alex
Kina is offline   Reply With Quote

Old   March 5, 2016, 22:46
Default
  #4
New Member
 
Xin Ren
Join Date: Feb 2016
Posts: 6
Rep Power: 10
XinRen is on a distinguished road
Hi Kina,

I am using version 2.4, but with 2.3.x files for running of potentialFoam.

Yes, I did input potentialFoam in fvSolutions file.


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
Phi
{
solver GAMG;
smoother DIC;
cacheAgglomeration on;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
mergeLevels 1;

tolerance 1e-06;
relTol 0.01;
}

p
{
$Phi;
}
}

potentialFlow
{
nNonOrthogonalCorrectors 3;
}


// ************************************************** *********************** //
XinRen is offline   Reply With Quote

Old   March 6, 2016, 02:38
Default
  #5
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
So the command:
Code:
potentialFoam -writep
Also doesn't work?
Kina is offline   Reply With Quote

Old   March 6, 2016, 19:54
Default
  #6
New Member
 
Xin Ren
Join Date: Feb 2016
Posts: 6
Rep Power: 10
XinRen is on a distinguished road
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=`getApplication`

cp -r 0.org 0 > /dev/null 2>&1
runApplication blockMesh
runApplication $application -writePhi -writep
runApplication streamFunction

# ----------------------------------------------------------------- end-of-file

I ran blockMesh, then -writePhi -writep, and this is where I got stuck at
XinRen 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
potentialFoam not working properly GAlava OpenFOAM Running, Solving & CFD 7 March 9, 2021 11:34
ANSYS Licensing Problem, Processes Running but Showing as Not Running penguinman ANSYS 3 September 27, 2016 13:30
potentialFoam force calculation TypeR OpenFOAM Running, Solving & CFD 0 September 14, 2015 14:11
Unconsistent parallel jobs running time arnaud6 OpenFOAM Running, Solving & CFD 4 February 10, 2015 12:42
Fluent 14.0 file not running in parallel mode in cluster tejakalva FLUENT 0 February 4, 2015 07:02


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