|
[Sponsors] |
October 5, 2023, 01:23 |
How can I change initial pressure ?
|
#1 |
New Member
Join Date: Oct 2023
Posts: 2
Rep Power: 0 |
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 |
|
Tags |
compressible, shock tube |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |