CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Add single cells (https://www.cfd-online.com/Forums/openfoam-meshing/148985-add-single-cells.html)

PicklER February 23, 2015 08:35

Add single cells
 
Hi all

I'm trying to add single cells to a mesh. So far I have been able to copy and amend the files: points, faces, boundary, cells and neighbor and write them to new time directory in polyMesh. This is done by brute force: find patch faces, creating new points, assigning new internal and boundary faces where needed and adjusting boundary, own and neighbour accordingly. This is all done from the block mesh.

Another idea was to use a dynamic mesh to displace the points and then a refinement which will simulate a cell addition. This idea is very limited to mesh with corners.

I want to solve the flow field with rhoCentralFoam, then add cells according to some variable.

As of now, I am having trouble with the solver and the thermo.Cv() and thermo.Cp(). To solve these I do a #createField and a thermo.correct for each time step, but then time.write() does not write the appended p, T and U. Before the #createFields, I use #createMesh in each time step to update the mesh properties.

My question: Is there any simpler way of doing this?

Thank in advance

PicklER February 26, 2015 00:59

Hi again

Just to make my question more direct: How can I update the thermo properties after I have added a cell, with out using #createFields and then thermo.correct()?

Thanks


All times are GMT -4. The time now is 01:47.