Saturday, December 1, 2018

Steps to follow to run die case

Steps to follow:

0) Prepare the environment:
https://raptorlicious.blogspot.com/2018/08/explorations-with-openfoam.html

1) https://raptorlicious.blogspot.com/2018/12/mesh-parameters-for-holly5bkuphdf.html

2) https://raptorlicious.blogspot.com/2018/11/method-of-creation.html

3) Run using https://raptorlicious.blogspot.com/2018/11/more-ras-model-links-trying-to-find-out.html 
learning from https://raptorlicious.blogspot.com/2018/11/to-do-nov-24th.html

Edit: It looks good ( https://github.com/bshambaugh/openfoam-experiments/tree/master/B1_CoarseMesh  ) but there is an error with matching the geometry.


https://gist.github.com/bshambaugh/60ded31417283c9cedc4e2c3e4fca212

 Maybe I can see what the points are, so that I can change them. Rather than going through the effort to write a parser,

cat points | grep -o "^([0-9].* [0-9].* [0-9].*)"

cat points | grep -o "^([0-9].* [0-9].* [0-9].*)" | sort -rn

Trying the FineMesh and Inlet Mesh together with mergeMeshes, while shrinking before hand, leads to a misaligned mesh. Maybe the mesh merging should be done beforehand, and then the scaling of the meshes should follow.


Okay, I did this and then ran:

transformPoints -scale '(0.00005 0.00001 0.000008571428571428571)'


Now moving to solvers involving pitzDaily, which may or may not be for turbulent flow:

https://www.cfd-online.com/Forums/openfoam-solving/68072-pimplefoam-vs-simplefoam-vs-pisofoam-vs-icofoam.html

tutorials/incompressible/pisoFoam/les/pitzDailyMapped
tutorials/incompressible/pisoFoam/les/pitzDaily

tutorials/incompressible/simpleFoam/les/pitzDaily
tutorials/incompressible/simpleFoam/les/pitzDailyMapped
tutorials/incompressible/simpleFoam/les/pitzDailyExptInlet

tutorials/incompressible/pimpleFoam/pitzDaily
tutorials/incompressible/adjointShapeOptimizationFoam/pitzDaily/

tutorials/compressible/rhoPimpleFoam/les/pitzDaily

basic/scalarTransportFoam/pitzDaily
basic/potentialFoam/pitzDaily

Which one should I chose?? I would like a turbulent flow solver.

I like  this pose from the simplefoam-vs-pisofoam-vs-icofoam thread above: "Hi
icoFoam is transient solver for incompressible, laminar flow of Newtonian fluids.

pimpleFoam is large time-step transient solver for incompressible, flow using the PIMPLE(merged PISO-SIMPLE) algorithm.

pisoFoam is transient solver for incompressible flow.
Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.

simpleFoam is steady-state solver for compressible, turbulent flow

Regards

Ata"

Do I want the flow to be compressible or incompressible?
https://www.cfd-online.com/Forums/main/8344-incompressible-compressible-flow.html . I found from this link that the density varies.

Follow Josef Nagy's tutorial, and modify it:
https://www.youtube.com/watch?v=-46pgYQYER8&list=PLcOe4WUSsMkGPdwCpZfKcpn7w-EkgAMB8

Edit:: For convergence:

Change the Solver
rhoPimpleFoam of compressible fluids for HVAC and similar applications, with optional
mesh motion and mesh topology change
rhoSimpleFoam Steady-state solver for turbulent flow of compressible fluids.
rhoCentralFoam Density-based compressible flow solver based on central-upwind schemes of Kurganov and Tadmor.

Plot Residuals
Alter Residuals
See albcem's excellent comment at:
https://www.cfd-online.com/Forums/openfoam-solving/58365-simplefoam-convergence-problems.html
Change the grid size
Change the time steps

 Change Model
kEpsilon Standard k-epsilon turbulence model for incompressible flows.
LRR Launder, Reece and Rodi Reynolds-stress turbulence model for compressible flows.
kEpsilon Standard k-epsilon turbulence model for compressible flows including rapid distor-
tion theory (RDT) based compression term.

No comments:

Post a Comment