I was wondering if there is a way to deallocate bounceback nodes which have already been instantiated?
What do you mean exactly? What are you trying to do?
Hi orestis,
Thanks for you reply.
I am allocating nodes as bounceback nodes and running a case up until steady state.
I am doing this using
defineDynamics(lattice, Box3D(x1, x2, y1, y2, z1, z2), new BounceBack<T,DESCRIPTOR>);
Now, I want to use the same multiblocklattice but now I don’t want bounceback nodes that I had declared using my previous definedynamics command, and run the simulation until steady state using the steady state velocity and density fields as my initial condition for this new case.
I tried using
defineDynamics(lattice, Box3D(x1, x2, y1, y2, z1, z2), new BGKdynamics<T,DESCRIPTOR>(omega));
But this gives me a segmentation fault. Is there any suggested workaround to this?
would you have a sample code so I can check it?