[Risolto] INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Installazione, configurazione e uso di programmi e strumenti.
spina1985
Prode Principiante
Messaggi: 16
Iscrizione: martedì 21 dicembre 2010, 16:17

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da spina1985 »

Scusami se ti rispondo adesso ma ho avuto un imprevisto.....
Ecco il risultato:
spinosa@ubuntu:~$ ls -l /opt/openfoam171/etc/
totale 108
-rw-r--r-- 1 root root  2383 2010-10-18 16:44 aliases.csh
-rw-r--r-- 1 root root  2365 2010-10-18 16:44 aliases.sh
drwxr-xr-x 5 root root  4096 2010-12-22 14:44 apps
-rw-r--r-- 1 root root  8420 2010-11-09 15:15 bashrc
-rw-r--r-- 1 root root  7754 2010-10-18 16:44 cellModels
-rw-r--r-- 1 root root 27486 2010-10-18 16:44 controlDict
-rw-r--r-- 1 root root  8859 2010-10-18 16:44 cshrc
-rw-r--r-- 1 root root  1904 2010-10-18 16:44 prefs.csh-EXAMPLE
-rw-r--r-- 1 root root  1891 2010-10-18 16:44 prefs.sh-EXAMPLE
-rw-r--r-- 1 root root 10332 2010-10-18 16:44 settings.csh
-rw-r--r-- 1 root root 10034 2010-10-18 16:44 settings.sh
drwxr-xr-x 2 root root  4096 2010-12-22 14:44 thermoData
spinosa@ubuntu:~$ tail -n 5 ~/.bashrc
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi
. /opt/openfoam171/etc/bashrc
spinosa@ubuntu:~$

Grazie ancora x la tua disponibiltà
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da zeruel85 »

mi pare che openfoam sia installato ora. dov'è il problema?
spina1985
Prode Principiante
Messaggi: 16
Iscrizione: martedì 21 dicembre 2010, 16:17

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da spina1985 »

Le istruzioni dicono:
# Open a new2 \relax \special {t4ht= terminal window and test that the icoFoam application, from the OpenFOAM package, is working by typing

        icoFoam -help
   
# A “Usage” message should appear. Your installation and user configuration is complete.

Il risultato sul mio terminale è:

spinosa@ubuntu:~$ icoFoam -help

Usage: icoFoam [-parallel] [-case dir]  [-help] [-doc] [-srcDoc]

Che significa?
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da ReMichael »

vuol dire che funziona  :)
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da zeruel85 »

significa che il comando icoFoam si può usare con le opzioni che ti vengono scritte.
spina1985
Prode Principiante
Messaggi: 16
Iscrizione: martedì 21 dicembre 2010, 16:17

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da spina1985 »

Davvero?!? Grazie ragazzi...
Adesso per cominciare ad usare il programma, nella guida c'è scritto:

Getting Started

Create a project directory within the $HOME/OpenFOAM directory named -1.7.1 (e.g. chris-1.7.1 for user chris and OpenFOAM version 1.7.1) and create a directory named run within it, e.g. by typing:

    * mkdir -p $FOAM_RUN

Copy the tutorial examples directory in the OpenFOAM distribution to the run directory. If the OpenFOAM environment variables are set correctly, then the following command will be correct:

    * cp -r $FOAM_TUTORIALS $FOAM_RUN

Run the first example case of incompressible laminar flow in a cavity:

    * cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
    * blockMesh
    * icoFoam
    * paraFoam

Refer to the OpenFOAM User Guide to get started.

Reporting Bugs in OpenFOAM

We appreciate that bugs in OpenFOAM are reported so we can fix them. Please refer to the OpenFOAM bugs pages to report bugs.

Nel mio caso, devo procedere allo stesso modo?
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da ReMichael »

beh, se vuoi usare il programma penso che devi seguire queste indicazioni
spina1985
Prode Principiante
Messaggi: 16
Iscrizione: martedì 21 dicembre 2010, 16:17

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da spina1985 »

Ok grazie ReMichael....
Un'ultima cosa, ma qnd mi dice: Copy the tutorial examples directory in the OpenFOAM distribution to the run directory.
Come si fà?
Per trovare un programma in linux con le sue cartelle, come si fà?
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da zeruel85 »

spina1985, quello è solo un tutorial, ma è utile per farti capire alcune potenzialità del software. comunque, prima di imparare ad utilizzare openfoam, ti consiglierei vivamente di imparare ad usare linux, più che altro perché il primo è strettamente connesso al secondo.
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da ReMichael »

sono d'accordo con quanto detto da zeruel85, ti conviene imparare almeno i comandi base per poter gestire un sistema linux.

detto questo, la guida ti scrive sotto il comando che devi utilizzare:

Codice: Seleziona tutto

cp -r $FOAM_TUTORIALS $FOAM_RUN
spina1985
Prode Principiante
Messaggi: 16
Iscrizione: martedì 21 dicembre 2010, 16:17

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da spina1985 »

Sono pienamente d'accordo con voi ragazzi.....
Grazie mille ReMichael sei stato davvero molto gentile, senza di te nn so come avrei fatto.
Buone feste a tutti. :)
Avatar utente
zeruel85
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2450
Iscrizione: venerdì 12 gennaio 2007, 18:32

Re: INSTALLAZIONE OpenFOAM 1.7.1 SU UBUNTU

Messaggio da zeruel85 »

per favore, metti [Risolto] davanti al titolo del primo post. basta che torni al primo post e clicchi sul tasto "modifica".
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 9 ospiti