How can I change initial pressure ?
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;) |
All times are GMT -4. The time now is 12:38. |