-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
432fcfd
commit 0fb28ea
Showing
69 changed files
with
8,274 additions
and
147 deletions.
There are no files selected for viewing
1,086 changes: 1,086 additions & 0 deletions
1,086
.ipynb_checkpoints/Bulk_descriptor_creator-mex-checkpoint.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file modified
0
.ipynb_checkpoints/Bulk_descriptor_creator-old-checkpoint.ipynb
100644 → 100755
Empty file.
Empty file modified
0
.ipynb_checkpoints/Bulk_descriptor_visualizator-checkpoint.ipynb
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
190 changes: 190 additions & 0 deletions
190
.ipynb_checkpoints/ScriptGenerator-CeCAR-Mex-checkpoint.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"templateFilename = \"template-translation-fl-3sph.mci\"\n", | ||
"templateScript = \"cudamcfl-array.sh\"\n", | ||
"mciFolder = \"/home/nicolas/Documentos/Investigación/Sources/CUDA/CUDAMCFL/MCIs/\"\n", | ||
"mciPrefix = \"s-cecar-wfr-trans-3sph-fl-2\"\n", | ||
"resultsFolder = \"\"\n", | ||
"scriptFilename = \"/home/nicolas/Documentos/Investigación/Sources/CUDA/CUDAMCFL/simualtionTrans3sph.sh\"\n", | ||
"bulkFilenameRoot = \"/home/ncarbone/CUDAMCFL/BulkDesc/\"\n", | ||
"bulkFilename = \"/home/ncarbone/CUDAMCFL/BulkDesc/3Dbulk-trans-3sph\"\n", | ||
"exeFilename = \"/home/ncarbone/CUDAMCFL/cuda_fl\"\n", | ||
"outputLineNumber = 6\n", | ||
"detCentLineNumber = 13\n", | ||
"sourceLineNumber = 14\n", | ||
"bulkLineNumber = 23\n", | ||
"with open(mciFolder+templateFilename, 'r') as file:\n", | ||
" template = file.readlines()\n", | ||
"with open(templateScript, 'r') as fileS:\n", | ||
" templateS = fileS.readlines()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"-5 -5 1\n", | ||
"-5 -4 2\n", | ||
"-5 -3 3\n", | ||
"-5 -2 4\n", | ||
"-5 -1 5\n", | ||
"-5 0 6\n", | ||
"-5 1 7\n", | ||
"-5 2 8\n", | ||
"-5 3 9\n", | ||
"-5 4 10\n", | ||
"-4 -5 11\n", | ||
"-4 -4 12\n", | ||
"-4 -3 13\n", | ||
"-4 -2 14\n", | ||
"-4 -1 15\n", | ||
"-4 0 16\n", | ||
"-4 1 17\n", | ||
"-4 2 18\n", | ||
"-4 3 19\n", | ||
"-4 4 20\n", | ||
"-3 -5 21\n", | ||
"-3 -4 22\n", | ||
"-3 -3 23\n", | ||
"-3 -2 24\n", | ||
"-3 -1 25\n", | ||
"-3 0 26\n", | ||
"-3 1 27\n", | ||
"-3 2 28\n", | ||
"-3 3 29\n", | ||
"-3 4 30\n", | ||
"-2 -5 31\n", | ||
"-2 -4 32\n", | ||
"-2 -3 33\n", | ||
"-2 -2 34\n", | ||
"-2 -1 35\n", | ||
"-2 0 36\n", | ||
"-2 1 37\n", | ||
"-2 2 38\n", | ||
"-2 3 39\n", | ||
"-2 4 40\n", | ||
"-1 -5 41\n", | ||
"-1 -4 42\n", | ||
"-1 -3 43\n", | ||
"-1 -2 44\n", | ||
"-1 -1 45\n", | ||
"-1 0 46\n", | ||
"-1 1 47\n", | ||
"-1 2 48\n", | ||
"-1 3 49\n", | ||
"-1 4 50\n", | ||
"0 -5 51\n", | ||
"0 -4 52\n", | ||
"0 -3 53\n", | ||
"0 -2 54\n", | ||
"0 -1 55\n", | ||
"0 0 56\n", | ||
"0 1 57\n", | ||
"0 2 58\n", | ||
"0 3 59\n", | ||
"0 4 60\n", | ||
"1 -5 61\n", | ||
"1 -4 62\n", | ||
"1 -3 63\n", | ||
"1 -2 64\n", | ||
"1 -1 65\n", | ||
"1 0 66\n", | ||
"1 1 67\n", | ||
"1 2 68\n", | ||
"1 3 69\n", | ||
"1 4 70\n", | ||
"2 -5 71\n", | ||
"2 -4 72\n", | ||
"2 -3 73\n", | ||
"2 -2 74\n", | ||
"2 -1 75\n", | ||
"2 0 76\n", | ||
"2 1 77\n", | ||
"2 2 78\n", | ||
"2 3 79\n", | ||
"2 4 80\n", | ||
"3 -5 81\n", | ||
"3 -4 82\n", | ||
"3 -3 83\n", | ||
"3 -2 84\n", | ||
"3 -1 85\n", | ||
"3 0 86\n", | ||
"3 1 87\n", | ||
"3 2 88\n", | ||
"3 3 89\n", | ||
"3 4 90\n", | ||
"4 -5 91\n", | ||
"4 -4 92\n", | ||
"4 -3 93\n", | ||
"4 -2 94\n", | ||
"4 -1 95\n", | ||
"4 0 96\n", | ||
"4 1 97\n", | ||
"4 2 98\n", | ||
"4 3 99\n", | ||
"4 4 100\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"with open(scriptFilename, 'w') as shfile:\n", | ||
" i=0\n", | ||
" for xsource in range(-5, 5, 1):\n", | ||
" for ysource in range(-5, 5, 1):\n", | ||
" i=i+1\n", | ||
" print(xsource, ysource, i)\n", | ||
" outputFileName = resultsFolder+mciPrefix+ \"_\" + str(xsource) + \"_\" + str(ysource) + \"_i\"+str(i)+\".dat\"\n", | ||
" mciFileName = mciFolder+mciPrefix + \"_i\"+str(i)+\".mci\"\n", | ||
" template[outputLineNumber] = outputFileName+\"\\t\"+\"A\"+\"\\t\\n\"\n", | ||
" template[sourceLineNumber] = str(xsource) + \"\\t\" + str(ysource) + \"\\t\" + str(0)+\"\\n\"\n", | ||
" #template[detCentLineNumber] = str(xsource) + \"\\t\" + str(ysource) + \"\\t\\n\"\n", | ||
" template[bulkLineNumber] = bulkFilename\n", | ||
" with open(mciFileName, 'w') as mcifile:\n", | ||
" mcifile.writelines( template )" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.4+" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 1 | ||
} |
188 changes: 188 additions & 0 deletions
188
.ipynb_checkpoints/ScriptGenerator-CeCAR-Translation-Copy1-checkpoint.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"templateFilename = \"template-translation-fl-3sph.mci\"\n", | ||
"templateScript = \"cudamcfl-array.sh\"\n", | ||
"mciFolder = \"/home/nicolas/Documentos/Investigación/Sources/CUDA/CUDAMCFL/MCIs/\"\n", | ||
"mciPrefix = \"s-cecar-wfr-trans-3sph-fl-2\"\n", | ||
"resultsFolder = \"\"\n", | ||
"scriptFilename = \"/home/nicolas/Documentos/Investigación/Sources/CUDA/CUDAMCFL/simualtionTrans3sph.sh\"\n", | ||
"bulkFilenameRoot = \"/home/ncarbone/CUDAMCFL/BulkDesc/\"\n", | ||
"bulkFilename = \"/home/ncarbone/CUDAMCFL/BulkDesc/3Dbulk-trans-3sph\"\n", | ||
"exeFilename = \"/home/ncarbone/CUDAMCFL/cuda_fl\"\n", | ||
"outputLineNumber = 6\n", | ||
"detCentLineNumber = 13\n", | ||
"sourceLineNumber = 14\n", | ||
"bulkLineNumber = 23\n", | ||
"with open(mciFolder+templateFilename, 'r') as file:\n", | ||
" template = file.readlines()\n", | ||
"with open(templateScript, 'r') as fileS:\n", | ||
" templateS = fileS.readlines()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 4, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"-5 -5 1\n", | ||
"-5 -4 2\n", | ||
"-5 -3 3\n", | ||
"-5 -2 4\n", | ||
"-5 -1 5\n", | ||
"-5 0 6\n", | ||
"-5 1 7\n", | ||
"-5 2 8\n", | ||
"-5 3 9\n", | ||
"-5 4 10\n", | ||
"-4 -5 11\n", | ||
"-4 -4 12\n", | ||
"-4 -3 13\n", | ||
"-4 -2 14\n", | ||
"-4 -1 15\n", | ||
"-4 0 16\n", | ||
"-4 1 17\n", | ||
"-4 2 18\n", | ||
"-4 3 19\n", | ||
"-4 4 20\n", | ||
"-3 -5 21\n", | ||
"-3 -4 22\n", | ||
"-3 -3 23\n", | ||
"-3 -2 24\n", | ||
"-3 -1 25\n", | ||
"-3 0 26\n", | ||
"-3 1 27\n", | ||
"-3 2 28\n", | ||
"-3 3 29\n", | ||
"-3 4 30\n", | ||
"-2 -5 31\n", | ||
"-2 -4 32\n", | ||
"-2 -3 33\n", | ||
"-2 -2 34\n", | ||
"-2 -1 35\n", | ||
"-2 0 36\n", | ||
"-2 1 37\n", | ||
"-2 2 38\n", | ||
"-2 3 39\n", | ||
"-2 4 40\n", | ||
"-1 -5 41\n", | ||
"-1 -4 42\n", | ||
"-1 -3 43\n", | ||
"-1 -2 44\n", | ||
"-1 -1 45\n", | ||
"-1 0 46\n", | ||
"-1 1 47\n", | ||
"-1 2 48\n", | ||
"-1 3 49\n", | ||
"-1 4 50\n", | ||
"0 -5 51\n", | ||
"0 -4 52\n", | ||
"0 -3 53\n", | ||
"0 -2 54\n", | ||
"0 -1 55\n", | ||
"0 0 56\n", | ||
"0 1 57\n", | ||
"0 2 58\n", | ||
"0 3 59\n", | ||
"0 4 60\n", | ||
"1 -5 61\n", | ||
"1 -4 62\n", | ||
"1 -3 63\n", | ||
"1 -2 64\n", | ||
"1 -1 65\n", | ||
"1 0 66\n", | ||
"1 1 67\n", | ||
"1 2 68\n", | ||
"1 3 69\n", | ||
"1 4 70\n", | ||
"2 -5 71\n", | ||
"2 -4 72\n", | ||
"2 -3 73\n", | ||
"2 -2 74\n", | ||
"2 -1 75\n", | ||
"2 0 76\n", | ||
"2 1 77\n", | ||
"2 2 78\n", | ||
"2 3 79\n", | ||
"2 4 80\n", | ||
"3 -5 81\n", | ||
"3 -4 82\n", | ||
"3 -3 83\n", | ||
"3 -2 84\n", | ||
"3 -1 85\n", | ||
"3 0 86\n", | ||
"3 1 87\n", | ||
"3 2 88\n", | ||
"3 3 89\n", | ||
"3 4 90\n", | ||
"4 -5 91\n", | ||
"4 -4 92\n", | ||
"4 -3 93\n", | ||
"4 -2 94\n", | ||
"4 -1 95\n", | ||
"4 0 96\n", | ||
"4 1 97\n", | ||
"4 2 98\n", | ||
"4 3 99\n", | ||
"4 4 100\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"with open(scriptFilename, 'w') as shfile:\n", | ||
" i=0\n", | ||
" for xsource in range(-5, 5, 1):\n", | ||
" for ysource in range(-5, 5, 1):\n", | ||
" i=i+1\n", | ||
" print(xsource, ysource, i)\n", | ||
" outputFileName = resultsFolder+mciPrefix+ \"_\" + str(xsource) + \"_\" + str(ysource) + \"_i\"+str(i)+\".dat\"\n", | ||
" mciFileName = mciFolder+mciPrefix + \"_i\"+str(i)+\".mci\"\n", | ||
" template[outputLineNumber] = outputFileName+\"\\t\"+\"A\"+\"\\t\\n\"\n", | ||
" template[sourceLineNumber] = str(xsource) + \"\\t\" + str(ysource) + \"\\t\" + str(0)+\"\\n\"\n", | ||
" #template[detCentLineNumber] = str(xsource) + \"\\t\" + str(ysource) + \"\\t\\n\"\n", | ||
" template[bulkLineNumber] = bulkFilename\n", | ||
" with open(mciFileName, 'w') as mcifile:\n", | ||
" mcifile.writelines( template )" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.5" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 1 | ||
} |
Empty file modified
0
.ipynb_checkpoints/ScriptGenerator-CeCAR-Translation-checkpoint.ipynb
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.