All: clean mesh run

clean:
	rm -rf 0 1 proc* 0.* constant/polyMesh/* log hmin constant/*/polyMesh/* error output time system/blockMeshDict system/snappyHexMeshDict system/createPatchDict system/topoSetDict system/decomposeParDict system/*/decomposeParDict

mesh:
	./mesh.sh

run:
	mpirun -np 16 evfFoam -parallel > log

reconstruct:
	reconstructPar
	reconstructPar -region fluid
	reconstructPar -region tWire
	reconstructPar -region tE
	reconstructPar -region bE
	reconstructPar -region bWire
	getMax U -region fluid | grep "Time =" > u
	postProcess -func sampleDict -region fluid -latestTime
	gnuplot fig/f.gnu
