45
MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas do pacote. A forma de criar suas próprias sub-rotinas é por meio do arquivo GROUND.FOR. Há também a possibilidade de se utilizar o IN-FORM recém lançado. A forma de se alterar suas rotinas abertas é editando-as e depois modificando o arquivo BLDEAR. Objetivos da aula: apresentar o arquivo ground e apontar como se pode modificar o bldear.

MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

Embed Size (px)

Citation preview

Page 1: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP Função & Estrutura do GROUND

• O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas do pacote.

• A forma de criar suas próprias sub-rotinas é por meio do arquivo GROUND.FOR. Há também a possibilidade de se utilizar o IN-FORM recém lançado.

• A forma de se alterar suas rotinas abertas é editando-as e depois modificando o arquivo BLDEAR.

• Objetivos da aula: apresentar o arquivo ground e apontar como se pode modificar o bldear.

Page 2: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP O Compilador Fortran

• As rotinas do PHOENICS estão escritas em FORTRAN 77.

• Elas foram desenvolvidas pelo compilador da Digital Fortran (DF) que mais tarde foi comprado pela COMPAQ que atualmente possui os direitos de comercialização.

• Para versão 3.5 para windows seus arquivos associados estão nas pastas com WINDF

• O PHOENICS também utiliza o compilador Salford. Ele é opcional. Seus arquivos associados estão nas pastas WINSF.

Page 3: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP O QUE FAZ O COMPILADOR ?

• Você pode escrever suas próprias rotinas.

• Para isto é necessário que após escritas elas sejam:

(a) Verificadas se a sintaxe empregada está correta – COMPILE

(b) Que a rotina seja anexada aos outros programas para criar um executável que chame todas as sub-rotinas incluindo a sua! - BUILD

• Código fonte – é editável e possui extensão *.FOR

• Código compilado – não é editável e possui extensão *.OBJ (linguagem de máquina

Page 4: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP ONDE ESTÃO GROUND AND MAIN?

• Os arquivos GROUND.FOR e MAIN.FOR estão na pasta:

phoenics\d_earth

No arquivo GROUND.FOR você vai escrever suas rotinas e no arquivo MAIN.FOR (SE NECESSÁRIO FOR) você poderá alterar dimensões de vetores ou outros parâmetros operacionais.

Page 5: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

O QUE É NECESSÁRIO PARA RODAR UM PGR COM GROUND?

(1)Copie a rotina GROUND para seu diretório de trabalho; D_PRIV1 é o default;

(2) Escreva o código na rotina GROUND

(3) COMPILE –> GROUND

(4) BUILD –> EARTH

(5) OPTIONS ->RUN VERSION ->EARTH->PRIVATE

(6) EXECUTE!

Page 6: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP ONDE ESTÃO OS *.OBJ?

• Os arquivos *.obj estão na pasta:

phoenics\d_earth\d_windf\d_corobj

O arquivo BLDEAR.BAT anexa todos estes arquivos *.OBJ ao programa principal. Ele se encontra na pasta:

phoenics\d_utils\d_windf

Page 7: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP C

OM

O É

O B

LD

EA

R?

• call copy ground.htm ground.for• call compile ground.for• rem core• echo. > earexe• echo main.obj >> earexe• echo ground.obj >> earexe• if not exist cospmain.obj echo \phoenics\d_earth\d_windf\cospmain.obj

>>earexe• if exist cospmain.obj echo cospmain.obj >> earexe• echo \phoenics\d_earth\d_windf\e1pdum.obj >> earexe• echo \phoenics\d_earth\d_windf\d_corobj\*.obj >> earexe• echo \phoenics\d_earth\d_windf\d_corobj\*.lib >> earexe• rem goto noopt• rem options• echo \phoenics\d_earth\d_windf\d_optobj\*.lib >> earexe• echo \phoenics\d_earth\d_windf\d_speobj\*.lib >> earexe• …• link @earexe >builtear• del earexe• copy temp.exe earexe.exe• del temp.exe• if exist main.htm del main.for• del main.obj• if exist ground.htm del ground.for• del ground.obj• rem "</strong></pre></body></html>"

Page 8: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

CASO VOCÊ QUEIRA EDITAR UMA ROTINA ABERTA DO PHOENICS COMO FICA O BLDEAR?

• A maioria das rotinas abertas estão no d_earth\d_core.

• Você deve transferir a que deseja modificar para seu diretório de trabalho e deixar a original no d_core.

• Para anexar esta subrotina ao programa o BLDEAR deve ser modificado.

• Note que ele possui uma linha:

•echo \phoenics\d_earth\d_windf\d_corobj\*.obj >> earexe *

• Agora você deverá escrever todos os *.obj que você vai anexar do d_corobj e aquele que você modificou do d_priv1

Page 9: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

CO

MO

FIC

A O

BL

DE

AR

->

gx

turb

mo

dif

ica

do

• echo \phoenics\d_earth\d_windf\d_corobj\gxmxlen.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxnepat.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxomeg.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxpara.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxpiston.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxpotflo.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxprndtl.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxprofil.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxprutil.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxradiat.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxrotaso.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxsettim.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxshap.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxspehe.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxswfan.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxtempr.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxthrmx.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxtimpat.obj >> earexe

• echo \phoenics\d_priv1\gxturb.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxusteer.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxutil.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\gxwall.obj >> earexe

• echo \phoenics\d_earth\d_windf\d_corobj\*.lib

Page 10: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 11: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 12: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 13: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 14: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 15: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 16: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 17: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 18: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 19: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 20: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 21: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 22: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 23: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 24: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 25: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 26: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 27: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 28: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 29: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 30: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 31: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 32: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 33: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 34: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 35: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 36: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 37: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 38: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 39: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 40: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 41: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 42: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 43: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 44: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP

Page 45: MULTLAB FEM-UNICAMP UNICAMP Função & Estrutura do GROUND O PHOENICS permite ao usuário criar suas próprias rotinas e também alterar as rotinas abertas

MULTLABFEM-UNICAMP

UNICAMP