CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   meaning of .* (https://www.cfd-online.com/Forums/openfoam-pre-processing/147024-meaning.html)

jishnuhari25 January 12, 2015 02:48

meaning of .*
 
Can any one pls tell meaing of ".*" . it has been used in many files .
for ex:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -3 0 0 0 0];

internalField uniform 0.01;

boundaryField
{
".*":confused:
{
type calculated;
value uniform 0.01;
}
}


// ************************************************** *********************** //

nimasam January 12, 2015 06:46

means all patches ;)

alexeym January 12, 2015 07:07

Hi,

To be more precise (as you can meet .* in other files without any connection to patches), it is regular expression, dot means "any character", star means "0 or more repetitions". So any string matches this pattern.


All times are GMT -4. The time now is 07:39.