Skip to content

Re: Value on the edge of Cuboids is zero

#2629
steed188
Participant

I did it like this:
for ( int iC = 0; iC < TSlattice.getLoadBalancer().size(); iC++ ) {
int nx = sLattice.getBlockLattice( iC ).getNx();
int ny = sLattice.getBlockLattice( iC ).getNy();
int nz = sLattice.getBlockLattice( iC ).getNz();

for ( int iX = 0; iX < nx; ++iX ) {
for ( int iY = 0; iY < ny; ++iY ) {
for ( int iZ = 0; iZ < nz; ++iZ ) {
…// Do some operation to every value of Nx,Ny,Nz of TSlattice according to value of slattice;

}
}
}
}

Then ,I tried to write it to VTK files.
SuperLatticePhysVelocity3D<T, DESCRIPTOR> sumVel( TSlattice, converter );
vtmWriterTS.addFunctor( sumVel );
vtmWriterTS.write( iT );

Between this two steps, should I take any operations to combine every Cuiods’ value together?