File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<ConditionList >
33 <ConditionItem n =" AutomaticInlet2D" pn =" Automatic inlet velocity" ImplementedInFile =" .cpp" Interval =" Total" ImplementedInApplication =" FluidApplication" MinimumKratosVersion =" 9000" WorkingSpaceDimension =" 2D" LocalSpaceDimension =" 1" SkinConditions =" True" VariableName =" VELOCITY" App =" Fluid" ElementType =" Line" ProcessName =" ApplyInletProcess" help =" " units =" m/s" unit_magnitude =" Velocity" >
44 <TopologyFeatures >
5- <item GeometryType =" Line" nodes =" 2" KratosName =" WallCondition2D2N " />
5+ <item GeometryType =" Line" nodes =" 2" KratosName =" LineCondition2D2N " />
66 </TopologyFeatures >
77 <DegreesOfFreedom ></DegreesOfFreedom >
88 <inputs ></inputs >
1818 </ConditionItem >
1919 <ConditionItem n =" Outlet2D" pn =" Outlet pressure" ImplementedInFile =" .cpp" Interval =" False" ImplementedInApplication =" FluidApplication" MinimumKratosVersion =" 9000" WorkingSpaceDimension =" 2D" LocalSpaceDimension =" 1" SkinConditions =" True" VariableName =" PRESSURE" App =" Fluid" ElementType =" Line" ProcessName =" ApplyOutletProcess" help =" Fixes the pressure" units =" Pa" unit_magnitude =" P" >
2020 <TopologyFeatures >
21- <item GeometryType =" Line" nodes =" 2" KratosName =" WallCondition2D2N " />
21+ <item GeometryType =" Line" nodes =" 2" KratosName =" LineCondition2D2N " />
2222 </TopologyFeatures >
2323 <DegreesOfFreedom ></DegreesOfFreedom >
2424 <inputs ></inputs >
4040 </ConditionItem >
4141 <ConditionItem n =" Slip2D" pn =" Slip" ImplementedInFile =" .cpp" Interval =" False" ImplementedInApplication =" FluidApplication" MinimumKratosVersion =" 9000" WorkingSpaceDimension =" 2D" LocalSpaceDimension =" 1" SkinConditions =" True" App =" Fluid" ElementType =" Line" ProcessName =" ApplySlipProcess" help =" " GroupBy =" Condition" >
4242 <TopologyFeatures >
43- <item GeometryType =" Line" nodes =" 2" KratosName =" WallCondition2D2N " />
43+ <item GeometryType =" Line" nodes =" 2" KratosName =" LineCondition2D2N " />
4444 </TopologyFeatures >
4545 <DegreesOfFreedom ></DegreesOfFreedom >
4646 <inputs ></inputs >
5656 </ConditionItem >
5757 <ConditionItem n =" NoSlip2D" pn =" No Slip" ImplementedInFile =" .cpp" Interval =" False" ImplementedInApplication =" FluidApplication" MinimumKratosVersion =" 9000" WorkingSpaceDimension =" 2D" LocalSpaceDimension =" 1" SkinConditions =" True" App =" Fluid" ElementType =" Line" ProcessName =" ApplyNoSlipProcess" help =" " >
5858 <TopologyFeatures >
59- <item GeometryType =" Line" nodes =" 2" KratosName =" WallCondition2D2N " />
59+ <item GeometryType =" Line" nodes =" 2" KratosName =" LineCondition2D2N " />
6060 </TopologyFeatures >
6161 <DegreesOfFreedom ></DegreesOfFreedom >
6262 <inputs ></inputs >
Original file line number Diff line number Diff line change 2828
2929# Prevents the PYTHONHOME error from happening and isolate possible python repacks present
3030# in the system and interfeering with runkratos
31+ export PYTHONHOME=" "
3132export PYTHONPATH=$kratos_bin_path :$PYTHONPATH
3233
3334KERNEL_NAME=" linux"
Original file line number Diff line number Diff line change @@ -20,8 +20,17 @@ DEL "%2\vtk_output"
2020
2121@ REM echo "Launching on Compiled for windows -> %kratos_bin_path%" > .run
2222
23+
24+ set PATH = E:\Deploy_Deltares\libs;%PATH%
25+ set PYTHONPATH = E:\Deploy_Deltares
26+ set PYTHONHOME = C:\Users\garat\AppData\Local\Programs\Python\Python311
27+
28+
2329set PATH = %kratos_bin_path% \libs;%PATH%
2430set PYTHONPATH = %kratos_bin_path%
31+ REM pythonhome is the parent directory of %python_path%
2532
33+ set PYTHONHOME = " "
34+ %python_path% -c " import os; print (os.environ)" > " %2 \\%1 .1info" 2 > " %2 \\%1 .1err"
2635REM Run Python using the script MainKratos.py
27- %python_path% /python MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
36+ %python_path% MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ DEL "%2\%1.err"
1313DEL " %2 \%1 *.post.bin"
1414DEL " %2 \%1 *.post.res"
1515DEL " %2 \%1 *.post.msh"
16-
1716@ REM Calculate!
18- %kratos_python_exe% MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
17+
18+ set PYTHONHOME = " "
19+ %python_path% MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
Original file line number Diff line number Diff line change @@ -78,12 +78,11 @@ proc Kratos::pipVersion { {pythonExecutable ""} } {
7878 }
7979 set ver 0
8080
81- catch {
8281 set info [exec $pip -m pip --version 2>@1]
8382 if {[regexp {pip\s+(\d+\.\d+)} $info --> version]} {
8483 set ver $version
8584 }
86- }
85+
8786
8887 return $ver
8988}
@@ -206,7 +205,7 @@ proc Kratos::CheckDependenciesPipMode {} {
206205 if {$py_version <= 0} {
207206 set ret " MISSING_PYTHON"
208207 } else {
209- set pip_version [Kratos::pipVersion]
208+ set pip_version [Kratos::pipVersion $python_exe_path ]
210209 if {$pip_version <= 0} {
211210 set ret " MISSING_PIP"
212211 } else {
@@ -360,4 +359,4 @@ proc Kratos::CreateModeCombo { } {
360359
361360 grid $w -col 9 -row 0 -padx 10 -sticky news
362361
363- }
362+ }
You can’t perform that action at this time.
0 commit comments