Skip to content

Commit

Permalink
Merge pull request #90 from denis-anuprienko/master
Browse files Browse the repository at this point in the history
SkewedUpwind and LinearProfileSkewedUpwind
  • Loading branch information
LogashenkoDL authored Jun 13, 2024
2 parents d01e1c8 + f46ad73 commit 0394f05
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/util/domain_disc_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ function UpwindFV1(upwindType, upwindParam)
end
return upwind
elseif upwindType == "partial" then return PartialUpwind ()
elseif upwindType == "skewed" then return SkewedUpwind ()
elseif upwindType == "lps" then return LinearProfileSkewedUpwind ()
else
print("UpwindFV1: no upwind type '"..upwindType.."' available. Aborting")
exit();
Expand Down
22 changes: 22 additions & 0 deletions ugbase/bridge/disc_bridges/elem_discs_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,28 @@ static void Domain(Registry& reg, string grp)
.set_construct_as_smart_pointer(true);
reg.add_class_to_group(name, "PartialUpwind", tag);
}

// ConvectionShapesSkewedUpwind
{
typedef ConvectionShapesSkewedUpwind<dim> T;
typedef IConvectionShapes<dim> TBase;
string name = string("SkewedUpwind").append(suffix);
reg.add_class_<T, TBase>(name, upGrp)
.add_constructor()
.set_construct_as_smart_pointer(true);
reg.add_class_to_group(name, "SkewedUpwind", tag);
}

// ConvectionShapesLinearProfileSkewedUpwind
{
typedef ConvectionShapesLinearProfileSkewedUpwind<dim> T;
typedef IConvectionShapes<dim> TBase;
string name = string("LinearProfileSkewedUpwind").append(suffix);
reg.add_class_<T, TBase>(name, upGrp)
.add_constructor()
.set_construct_as_smart_pointer(true);
reg.add_class_to_group(name, "LinearProfileSkewedUpwind", tag);
}
}

/**
Expand Down
Loading

0 comments on commit 0394f05

Please sign in to comment.