Skip to content
Snippets Groups Projects
Commit ebd837e6 authored by Bruno Seny's avatar Bruno Seny
Browse files

Constant function is defined with a vector

parent 43fa0e70
No related branches found
No related tags found
No related merge requests found
...@@ -51,10 +51,9 @@ print'*** Create a dg solver ***' ...@@ -51,10 +51,9 @@ print'*** Create a dg solver ***'
velF = functionLua(2, 'velocity', {'XYZ'}):getName() velF = functionLua(2, 'velocity', {'XYZ'}):getName()
law=dgConservationLawAdvectionDiffusion(velF,"") law=dgConservationLawAdvectionDiffusion(velF,"")
g=fullMatrix(1,1); zero=functionConstant({0.}):getName();
g:set(0,0,0) law:addBoundaryCondition('Walls',law:newOutsideValueBoundary(zero))
law:addBoundaryCondition('Walls',law:newOutsideValueBoundary(functionConstant(g):getName())) law:addBoundaryCondition('Top',law:newOutsideValueBoundary(zero))
law:addBoundaryCondition('Top',law:newOutsideValueBoundary(functionConstant(g):getName()))
FS = functionLua(1, 'initial_condition', {'XYZ'}):getName() FS = functionLua(1, 'initial_condition', {'XYZ'}):getName()
GC=dgGroupCollection(myModel,2,order) GC=dgGroupCollection(myModel,2,order)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment