]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Updated syntax
authormichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 22:20:03 +0000 (23:20 +0100)
committermichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 22:20:03 +0000 (23:20 +0100)
CoreFlows/examples/Python/DiffusionEquation/DiffusionEquation_1DHeatedRod_FE.py

index 8276a7603b94b5472804acf0b1ec4366a7080133..920869d9fadaf9c5efd18f8bc888f44c4ad1eef4 100755 (executable)
@@ -2,6 +2,7 @@
 # -*-coding:utf-8 -*
 
 import CoreFlows as cf
+import cdmath as cm
 
 def DiffusionEquation_1DHeatedRod():
        spaceDim = 1;
@@ -35,7 +36,8 @@ def DiffusionEquation_1DHeatedRod():
        
     #Initial field creation
        print("Building initial data" );
-       myProblem.setInitialFieldConstant(spaceDim,VV_Constant,xinf,xsup,nx,"Neumann","Neumann");
+       #Syntax should be simplified when problem of enum swig is solved
+       myProblem.setInitialFieldConstant(spaceDim,VV_Constant,xinf,xsup,nx,"Neumann","Neumann",0.,0.,0,"","",0.,0.,0,"","",cm.NODES);
 
     # the boundary conditions
        myProblem.setNeumannBoundaryCondition("Neumann");