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
7fd42710
Commit
7fd42710
authored
3 years ago
by
felix
Browse files
Options
Downloads
Patches
Plain Diff
replace code with other code
parent
fc7a2cd1
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
+15
-3
15 additions, 3 deletions
openfoam/run/flowAroundCylinder/0/U
openfoam/run/flowAroundCylinder/system/codeDict
+0
-38
0 additions, 38 deletions
openfoam/run/flowAroundCylinder/system/codeDict
with
15 additions
and
41 deletions
openfoam/run/flowAroundCylinder/0/U
+
15
−
3
View file @
7fd42710
...
...
@@ -26,11 +26,23 @@ boundaryField
value uniform (0 0 0);
}
inlet
/* { */
/* type codedFixedValue; */
/* value uniform (0.2 0 0); */
/* name parabolicChannelInlet; */
/* } */
inlet
{
type codedFixedValue;
value uniform (0.2 0 0);
name parabolicChannelInlet;
type uniformFixedValue;
uniformValue (0.2 0 0);
y0 0.2;
scale2 polynomial
(
( (#eval{6*$y0*(0.41-$y0)/pow(0.41,2)} 0 0) (0 0 0) )
( (#eval{6*(0.41-2*$y0)/pow(0.41,2)} 0 0) (1 0 0) )
( (#eval{-6/pow(0.41,2)} 0 0) (2 0 0) )
);
}
outlet
...
...
This diff is collapsed.
Click to expand it.
openfoam/run/flowAroundCylinder/system/codeDict
deleted
100644 → 0
+
0
−
38
View file @
fc7a2cd1
/*--------------------------------*- 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.
#include ../scale
parabolicChannelInlet
{
code
#{
auto y0 = -0.2; // Reference coodinate, lower wall
// auto vmean = 0.2; // Mean velocity with Re_d = 20
// auto vmean = 1; // Mean velocity with Re_d = 100
auto vmean = $ubar;
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.
Felix Hilsky
@s1140568
mentioned in commit
5c9c6201
·
3 years ago
mentioned in commit
5c9c6201
mentioned in commit 5c9c6201269479655e65c39b7deea27e2ed8b2bb
Toggle commit list
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