Julio Biason
2 years ago
4 changed files with 282 additions and 131 deletions
@ -0,0 +1,51 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\ |
||||
| ========= | | |
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
||||
| \\ / O peration | Version: v2212 | |
||||
| \\ / A nd | Website: www.openfoam.com | |
||||
| \\/ M anipulation | | |
||||
\*---------------------------------------------------------------------------*/ |
||||
FoamFile |
||||
{ |
||||
version 2.0; |
||||
format ascii; |
||||
class dictionary; |
||||
object createPatchDict; |
||||
} |
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
||||
|
||||
pointSync false; |
||||
|
||||
patches |
||||
( |
||||
{ |
||||
//- Master side patch |
||||
name AMI1; |
||||
patchInfo |
||||
{ |
||||
type cyclicAMI; |
||||
matchTolerance 0.0001; |
||||
neighbourPatch AMI2; |
||||
transform noOrdering; |
||||
} |
||||
constructFrom patches; |
||||
patches (AMI); |
||||
} |
||||
|
||||
{ |
||||
//- Slave side patch |
||||
name AMI2; |
||||
patchInfo |
||||
{ |
||||
type cyclicAMI; |
||||
matchTolerance 0.0001; |
||||
neighbourPatch AMI1; |
||||
transform noOrdering; |
||||
} |
||||
constructFrom patches; |
||||
patches (AMI_slave); |
||||
} |
||||
); |
||||
|
||||
|
||||
// ************************************************************************* // |
@ -0,0 +1,61 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\ |
||||
| ========= | | |
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
||||
| \\ / O peration | Version: v2212 | |
||||
| \\ / A nd | Website: www.openfoam.com | |
||||
| \\/ M anipulation | | |
||||
\*---------------------------------------------------------------------------*/ |
||||
FoamFile |
||||
{ |
||||
version 2.0; |
||||
format ascii; |
||||
class dictionary; |
||||
object fvSchemes; |
||||
} |
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
||||
|
||||
ddtSchemes |
||||
{ |
||||
default Euler; |
||||
} |
||||
|
||||
gradSchemes |
||||
{ |
||||
default Gauss linear; |
||||
} |
||||
|
||||
divSchemes |
||||
{ |
||||
default none; |
||||
|
||||
div(phi,U) Gauss linearUpwind grad(U); |
||||
div(U) Gauss linear; |
||||
|
||||
div(phi,k) Gauss linearUpwind grad(U); |
||||
div(phi,omega) Gauss linearUpwind grad(U); |
||||
|
||||
div((nuEff*dev2(T(grad(U))))) Gauss linear; |
||||
} |
||||
|
||||
laplacianSchemes |
||||
{ |
||||
default Gauss linear corrected; |
||||
} |
||||
|
||||
interpolationSchemes |
||||
{ |
||||
default linear; |
||||
} |
||||
|
||||
snGradSchemes |
||||
{ |
||||
default corrected; |
||||
} |
||||
|
||||
wallDist |
||||
{ |
||||
method meshWave; |
||||
} |
||||
|
||||
|
||||
// ************************************************************************* // |
@ -1,37 +1,49 @@
|
||||
whitespace = _{ " " | "\t" | "\r" | "\n" } |
||||
letters = _{ 'a'..'z' | 'A'..'Z' } |
||||
numbers = _{ '0'..'9' } |
||||
special_chars = _{ "_" | "(" | ")" | "." | "*" } |
||||
|
||||
multi_comment = { "/*" ~ (!"*/" ~ ANY)* ~ "*/" } |
||||
single_comment = { "//" ~ (!NEWLINE ~ ANY)* } |
||||
identifier = { ASCII_ALPHA+ ~ (ASCII_ALPHA | ASCII_DIGIT | "_")* } |
||||
rvalue = { ('a'..'z' | 'A'..'Z' | '0'..'9' | "_" | "." | "-")+ } |
||||
middle = { (whitespace | multi_comment)+ } |
||||
|
||||
include = { "#" ~ identifier ~ middle ~ "\"" ~ identifier ~ "\"" } |
||||
attribution = { identifier ~ middle ~ rvalue ~ ";" } |
||||
dictionary = { identifier ~ middle ~ "{" ~ ( |
||||
dictionary |
||||
| list |
||||
| attribution |
||||
| whitespace |
||||
| multi_comment |
||||
| single_comment |
||||
| include |
||||
)+ ~ "}" } |
||||
list_size = _{ ASCII_DIGIT+ ~ whitespace+ } |
||||
list_middle = { "(" ~ ( |
||||
dictionary |
||||
| rvalue |
||||
| list_middle |
||||
| whitespace |
||||
| multi_comment |
||||
| single_comment |
||||
)+ ~ ")" } |
||||
list = { identifier ~ middle ~ list_size? ~ list_middle ~ ";" } |
||||
|
||||
file = { SOI ~ ( |
||||
whitespace |
||||
| multi_comment |
||||
| single_comment |
||||
| dictionary |
||||
| list |
||||
| attribution)* |
||||
~ EOI } |
||||
|
||||
in_between = { (whitespace | multi_comment)+ } |
||||
|
||||
definition = { letters ~ (letters | numbers | special_chars)+ } |
||||
value = { (letters | numbers | special_chars)+ } |
||||
|
||||
attribution = { definition ~ in_between+ ~ value ~ (in_between+ ~ value)* ~ ";" } |
||||
|
||||
|
||||
/* identifier = { letters+ ~ (!whitespace ~ (letters | numbers | "_" | "(" | ")" | "," | "*"))* } */ |
||||
/* rvalue = { ('a'..'z' | 'A'..'Z' | '0'..'9' | "_" | "." | "-" | "(" | ")")+ } */ |
||||
|
||||
/* include = { "#" ~ identifier ~ in_between ~ "\"" ~ identifier ~ "\"" } */ |
||||
/* attribution = { identifier ~ (in_between ~ rvalue)+ ~ ";" } */ |
||||
/* dictionary = { identifier ~ in_between ~ "{" ~ ( */ |
||||
/* dictionary */ |
||||
/* | list */ |
||||
/* | attribution */ |
||||
/* | whitespace */ |
||||
/* | multi_comment */ |
||||
/* | single_comment */ |
||||
/* | include */ |
||||
/* )+ ~ "}" } */ |
||||
/* list_size = _{ ASCII_DIGIT+ ~ whitespace+ } */ |
||||
/* list_middle = { "(" ~ ( */ |
||||
/* dictionary */ |
||||
/* | rvalue */ |
||||
/* | list_middle */ |
||||
/* | whitespace */ |
||||
/* | multi_comment */ |
||||
/* | single_comment */ |
||||
/* )+ ~ ")" } */ |
||||
/* list = { identifier ~ in_between ~ list_size? ~ list_middle ~ ";" } */ |
||||
|
||||
/* file = { SOI ~ ( */ |
||||
/* whitespace */ |
||||
/* | multi_comment */ |
||||
/* | single_comment */ |
||||
/* | dictionary */ |
||||
/* | list */ |
||||
/* | attribution)* */ |
||||
/* ~ EOI } */ |
||||
|
Loading…
Reference in new issue