Commit b9b3b011 authored by Jean-Noël Grad's avatar Jean-Noël Grad
Browse files

Make offset visible with an impulsion

parent e15e8b6d
Pipeline #34181 failed with stages
in 349 minutes and 25 seconds
......@@ -161,6 +161,18 @@ int main(int argc, char** argv)
for (auto& block : *blocks)
setterSweep(&block);
// create impulsion
{
auto &block = *(blocks->begin());
auto pdf_field = block.template getData<PdfField_T>(pdfFieldID);
auto const dim_x = blocks->getNumberOfXCells(block);
auto const dim_y = blocks->getNumberOfYCells(block);
Cell const cell1{dim_x / 2, dim_y - 4, 0u};
Cell const cell2{dim_x / 2, dim_y - 5, 0u};
pdf_field->get(cell1, cell_idx_t(2)) = real_t(1e8);
pdf_field->get(cell2, cell_idx_t(2)) = real_t(1e8);
}
// create time loop
SweepTimeloop timeloop(blocks->getBlockStorage(), timesteps);
......
Parameters
{
timesteps 10001;
vtkWriteFrequency 500;
timesteps 51;
vtkWriteFrequency 1;
remainingTimeLoggerFrequency 3; // in seconds
offset 10;
offset 16;
}
DomainSetup
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment