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

How can I change initial pressure ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2023, 01:23
Unhappy How can I change initial pressure ?
  #1
New Member
 
Join Date: Oct 2023
Posts: 2
Rep Power: 0
yuyu7272 is on a distinguished road
I am definitely a novice for the OpenFoam so sorry if my problem is so basic.

I wanted to change the initial pressure condition but it went wrong.
I altered shockTube tutorials, especially the pressure condition, pressure information is stated in the shockTube/0/p file and it is 1D originally however, I want to set the initial pressure condition to 2D. Probably, I haven't rewritten all of what is required, I think. The things I did are stated below.



1. in the shockTube/0/p file I rewrote as below

FoamFile
{
version 2.0;
format ascii;
class vectorField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField nonuniform List<vector>
1000
(
(900000 100000)
...
...
(900000 1000)
);

boundaryField
{
sides
{
type zeroGradient;
}
empty
{
type empty;
}
}



2 in the p.org file
I rewrote class from volScalarField to vectorField

What should I do ???
I would appreciate it if anyone could help me.
THANK YOU
yuyu7272 is offline   Reply With Quote

Reply

Tags
compressible, shock tube


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
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 18:17
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13


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