3D solver 模型 batch solve 的方法
Question How to solve in batch 2D projects created with New 2D?Categories Solving process
Content
How to solve in batch 2D projects created with New 2D ?
Step
Action
1
Prepare all 2D projects that you want to solve.
Note: The main interest of the solving in batch is the possibility to solve several Flux projects in one run. Remember that the batch will try to solve or continue all the existing solving scenarios in the projects.
2
Click on Solve in Batch in the Flux3D tab from the Supervisor.
Note: 2D projects created with new2D use Solver3D that is why the solving in batch has to be started from the Flux3D tab.
3
Select all the projects you want to solve in the Batch window and then click on Start
4
Open again Geometry & Physics in the Flux2D tab
5
Execute the file solveBatch.py from menu Project-->Command file 看看那,学习学习!!! Can you show the content your solvebatch.py Phyton file?
I'm using GOT-It for the same purpose and DOS command like into a batch file:
set APPLIFLUX=Preflu2d
start C:\\Cedrat\\Flux_10.3\\bin\\flux.exe -executeSpy C:\Labi\cain\optim\FLUX\12.4.2011\my_python_file.py solvebatch.py 是自动生成的, 所以以后可以直接运行这个文件, 只需要修改程序中文件名即可
#! Flux3D 10.1
#! Preflu2D 10.1
#! FluxSkewed 10.1
projectList = ["FILENAME1","FILENAME2"]
for project in projectList :
try :
loadProject(project)
scenarioList = Scenario
if len(scenarioList) == 0 :
# no scenario
if session.supervisor.isPhysicApplicationDefine() :
# check if physic is define
if session.supervisor.isTransientProject() :
# transient project has to be piloted
print "Failed to solve : %s"%(project)
print "Cause : a scenario has to pilot the time variation in transient project/n"
else :
# create a scenario to solve with reference values
s = Scenario(name='Scenario_Ref')
scenarioList =
name = project+ '_SOLVED.FLU'
for scenario in scenarioList :
try :
scenario.continueToSolve(projectName= name,option='IterateOnNonConvergentSteps')
except :
print "Failed to solve : %s"%(scenario.name)
except :
print "Failed to solve : %s"%(project)
print "Cause : process abort/n"
# close the project
closeProject()
exit()
to lijo: sono curioso che tu possa parlare italiano? 本帖最后由 lijo 于 2012-7-9 04:15 编辑
giuseppe is a clever man ;)
ALLIN
~~~tesi.cab.unipd.it/29369/ 非常感谢楼主的分享 The more you learn, the more you realize how little you know…{:soso_e100:} 谢谢分享,谢谢楼主
页:
[1]