Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cylinderflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Hilsky
cylinderflow
Commits
127b01b7
Commit
127b01b7
authored
3 years ago
by
felix
Browse files
Options
Downloads
Patches
Plain Diff
move code to boundary file where it is actually used
parent
f4293420
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openfoam/run/flowAroundCylinder/0/U
+14
-1
14 additions, 1 deletion
openfoam/run/flowAroundCylinder/0/U
openfoam/run/flowAroundCylinder/system/codeDict
+0
-35
0 additions, 35 deletions
openfoam/run/flowAroundCylinder/system/codeDict
with
14 additions
and
36 deletions
openfoam/run/flowAroundCylinder/0/U
+
14
−
1
View file @
127b01b7
...
...
@@ -18,6 +18,8 @@ dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
#include "../scale"
boundaryField
{
wall
...
...
@@ -29,8 +31,19 @@ boundaryField
inlet
{
type codedFixedValue;
value uniform (
0.2
0 0);
value uniform (
$ubar
0 0);
name parabolicChannelInlet;
code #{
auto y0 = -0.2; // Reference coordinate, lower wall
auto vmean = 0.2; // Mean velocity
//auto vmean = 1; // Mean velocity
Foam::Field<double> y = patch().Cf().component(vector::Y) - y0;
operator ==
(
vmean*((6.0*y*(0.41-y))/pow(0.41,2))*vector(1,0,0)
);
#};
}
outlet
...
...
This diff is collapsed.
Click to expand it.
openfoam/run/flowAroundCylinder/system/codeDict
deleted
100644 → 0
+
0
−
35
View file @
f4293420
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object codeDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Note that you must adjust y0 with respect to the origin of
// you coordinate system.
parabolicChannelInlet
{
code
#{
auto y0 = -0.2; // Reference coodinate, lower wall
auto vmean = 300; // Mean velocity
//auto vmean = 1; // Mean velocity
Foam::Field<double> y = patch().Cf().component(vector::Y) - y0;
operator ==
(
vmean*((6.0*y*(0.41-y))/pow(0.41,2))*vector(1,0,0)
);
#};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment