-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from asartori86/parsed_grid_1-3
Instantiate ParsedGridGenerator<1,3>
- Loading branch information
Showing
3 changed files
with
152 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//----------------------------------------------------------- | ||
// | ||
// Copyright (C) 2017 by the deal2lkit authors | ||
// | ||
// This file is part of the deal2lkit library. | ||
// | ||
// The deal2lkit library is free software; you can use it, redistribute | ||
// it, and/or modify it under the terms of the GNU Lesser General | ||
// Public License as published by the Free Software Foundation; either | ||
// version 2.1 of the License, or (at your option) any later version. | ||
// The full text of the license can be found in the file LICENSE at | ||
// the top level of the deal2lkit distribution. | ||
// | ||
//----------------------------------------------------------- | ||
|
||
|
||
#include "../tests.h" | ||
#include <deal2lkit/utilities.h> | ||
#include <deal2lkit/parsed_grid_generator.h> | ||
|
||
#include <deal.II/grid/grid_out.h> | ||
#include <deal.II/base/utilities.h> | ||
|
||
|
||
using namespace deal2lkit; | ||
|
||
template<int dim, int spacedim> | ||
void test(ParsedGridGenerator<dim, spacedim> &pgg) | ||
{ | ||
Triangulation<dim, spacedim> *tria = pgg.serial(); | ||
GridOut go; | ||
go.write_msh(*tria, deallog.get_file_stream()); | ||
delete tria; | ||
} | ||
|
||
|
||
int main () | ||
{ | ||
initlog(); | ||
ParsedGridGenerator<1,3> a("Flagellum", "rectangle"); | ||
ParameterAcceptor::initialize(); | ||
ParameterAcceptor::prm.log_parameters(deallog); | ||
|
||
deallog <<"flagellum"<<std::endl; | ||
test(a); | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/parsed_grid_generator/parsed_grid_generator_13.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
DEAL:parameters:Flagellum::Colorize: false | ||
DEAL:parameters:Flagellum::Copy boundary to manifold ids: false | ||
DEAL:parameters:Flagellum::Copy material to manifold ids: false | ||
DEAL:parameters:Flagellum::Create default manifolds: true | ||
DEAL:parameters:Flagellum::Grid to generate: rectangle | ||
DEAL:parameters:Flagellum::Input grid file name: | ||
DEAL:parameters:Flagellum::Manifold descriptors: | ||
DEAL:parameters:Flagellum::Mesh smoothing alogrithm: none | ||
DEAL:parameters:Flagellum::Optional Point<spacedim> 1: 0,0,0 | ||
DEAL:parameters:Flagellum::Optional Point<spacedim> 2: 1,0,0 | ||
DEAL:parameters:Flagellum::Optional double 1: 1.0 | ||
DEAL:parameters:Flagellum::Optional double 2: 0.5 | ||
DEAL:parameters:Flagellum::Optional double 3: 1.5 | ||
DEAL:parameters:Flagellum::Optional int 1: 1 | ||
DEAL:parameters:Flagellum::Optional int 2: 2 | ||
DEAL:parameters:Flagellum::Optional vector of dim int: 1 | ||
DEAL:parameters:Flagellum::Output grid file name: | ||
DEAL::flagellum | ||
$NOD | ||
2 | ||
1 0.00000 0.00000 0.00000 | ||
2 1.00000 0.00000 0.00000 | ||
$ENDNOD | ||
$ELM | ||
1 | ||
1 1 0 0 2 1 2 | ||
$ENDELM |